@@ -13,8 +13,16 @@ services:
|
||||
networks:
|
||||
- public
|
||||
- internal
|
||||
healthcheck:
|
||||
test: ["CMD", "/app/forest-server", "--external-host", "http://127.0.0.1:4040", "admin", "status"]
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
depends_on:
|
||||
- "postgres"
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
restart: true
|
||||
|
||||
postgres:
|
||||
image: postgres:18
|
||||
@@ -23,13 +31,17 @@ services:
|
||||
env_file: ".env"
|
||||
networks:
|
||||
- internal
|
||||
# ports:
|
||||
# - "5432:5432"
|
||||
volumes:
|
||||
- ./data/postgres/18:/var/lib/postgresql/18/docker
|
||||
environment:
|
||||
POSTGRES_USER: forest
|
||||
POSTGRES_DB: forest
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready", "-U", "forest", "-d", "forest"]
|
||||
interval: 10s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
timeout: 10s
|
||||
|
||||
networks:
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user