Update
This commit is contained in:
+20
-11
@@ -1,6 +1,20 @@
|
||||
|
||||
version: "3.9"
|
||||
services:
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_DB: illustrations
|
||||
POSTGRES_USER: illustrations
|
||||
POSTGRES_PASSWORD: illustrations
|
||||
volumes:
|
||||
- illustrations_db_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||
interval: 3s
|
||||
timeout: 3s
|
||||
retries: 20
|
||||
start_period: 5s
|
||||
|
||||
web:
|
||||
build: ./web
|
||||
env_file:
|
||||
@@ -11,14 +25,9 @@ services:
|
||||
ports:
|
||||
- "8000:8000"
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_DB: illustrations
|
||||
POSTGRES_USER: illustrations
|
||||
POSTGRES_PASSWORD: illustrations
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
illustrations_db_data:
|
||||
name: illustrations_db_data
|
||||
|
||||
Reference in New Issue
Block a user