dach/docker-compose.yml

35 lines
636 B
YAML
Raw Normal View History

2023-10-26 12:45:08 +03:00
version: '3.8'
services:
db:
image: postgres:12.1-alpine
container_name: dach_db
restart: always
2023-10-27 22:21:25 +03:00
healthcheck:
test: ["CMD", "pg_isready", "-U", "dach"]
2023-10-27 18:40:05 +03:00
env_file:
- ./db.env
2023-10-26 12:45:08 +03:00
volumes:
- ./postgres:/var/lib/postgresql/data
web:
container_name: dachan.fun
healthcheck:
test:
[
"CMD-SHELL",
2023-10-27 18:40:05 +03:00
"wget -q --spider --proxy=off localhost:1337 || exit 1",
2023-10-26 12:45:08 +03:00
]
restart: always
ports:
- '1337:1337'
2023-10-27 22:21:25 +03:00
- '1488:1488'
2023-10-26 12:45:08 +03:00
build:
context: .
2023-10-27 18:40:05 +03:00
env_file:
- ./web.env
2023-10-26 12:45:08 +03:00
depends_on:
2023-10-27 22:21:25 +03:00
db:
condition: service_started
2023-10-26 12:45:08 +03:00