mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-18 12:53:42 -05:00
fix docker compose
This commit is contained in:
parent
8aebe83d4d
commit
bbb7fe6b1e
1 changed files with 11 additions and 10 deletions
|
@ -6,32 +6,33 @@ services:
|
|||
POSTGRES_DB: catask
|
||||
POSTGRES_USER: catask
|
||||
POSTGRES_PASSWORD: catask
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready", "-U", "catask"]
|
||||
interval: 1s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
# healthcheck:
|
||||
# test: ["CMD", "pg_isready", "-U", "catask"]
|
||||
# interval: 1s
|
||||
# timeout: 5s
|
||||
# retries: 10
|
||||
image: postgres:alpine
|
||||
networks:
|
||||
- catask
|
||||
restart: always
|
||||
volumes:
|
||||
- ./schema.sql:/docker-entrypoint-initdb.d/catask.sql
|
||||
- db-data:/var/lib/postgresql/data
|
||||
- ./postgresql.conf:/etc/postgresql.conf
|
||||
- pg-data:/var/lib/postgresql/data
|
||||
|
||||
catask:
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
- postgres
|
||||
# condition: service_healthy
|
||||
networks:
|
||||
- catask
|
||||
ports:
|
||||
- "8000:8000"
|
||||
restart: always
|
||||
volumes:
|
||||
- catask-data:/catask/static/emojis
|
||||
- catask-data:/catask/static/emojis/
|
||||
- catask-data:/catask/static/icons/favicon
|
||||
- ./config.json:/catask/config.json
|
||||
- ./.env:/catask/.env
|
||||
|
@ -41,5 +42,5 @@ networks:
|
|||
driver: bridge
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
pg-data:
|
||||
catask-data:
|
||||
|
|
Loading…
Add table
Reference in a new issue