forked from dachan/dach
1
0
Fork 0
dach/deploy/docker-compose.yml

35 lines
637 B
YAML
Raw Normal View History

2023-10-27 23:52:43 +03:00
version: '3.8'
services:
db:
image: postgres:12.1-alpine
container_name: dach_db
restart: always
healthcheck:
test: ["CMD", "pg_isready", "-U", "dach"]
env_file:
- ../db.env
volumes:
- ./postgres:/var/lib/postgresql/data
web:
2023-10-28 10:12:36 +03:00
container_name: dach_web
2023-10-27 23:52:43 +03:00
healthcheck:
test:
[
"CMD-SHELL",
2023-11-11 22:15:43 +03:00
"wget -q --spider --proxy=off localhost:5173 || exit 1",
2023-10-27 23:52:43 +03:00
]
restart: always
ports:
- '1337:1337'
2023-11-11 22:15:43 +03:00
- '5173:5173'
2023-10-27 23:52:43 +03:00
build:
context: ..
env_file:
- ../web.env
depends_on:
db:
condition: service_started