1
0
forked from dachan/dach

restructured

This commit is contained in:
2023-10-27 23:52:43 +03:00
parent 8bd04a62f9
commit 83a7a8f619

34
deploy/docker-compose.yml Normal file
View File

@@ -0,0 +1,34 @@
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:
container_name: dachan.fun
healthcheck:
test:
[
"CMD-SHELL",
"wget -q --spider --proxy=off localhost:1337 || exit 1",
]
restart: always
ports:
- '1337:1337'
- '1488:1488'
build:
context: ..
env_file:
- ../web.env
depends_on:
db:
condition: service_started