feat: add restart policy
This commit is contained in:
@@ -6,6 +6,7 @@ services:
|
||||
POSTGRES_USER: ${DB__USER:-beavergram}
|
||||
POSTGRES_PASSWORD: ${DB__PASSWORD:-beavergram}
|
||||
POSTGRES_DB: ${DB__DB_NAME:-beavergram}
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
- ./backend/migrations/init:/docker-entrypoint-initdb.d:ro
|
||||
@@ -27,6 +28,7 @@ services:
|
||||
environment:
|
||||
RUN_ENVIRONMENT: prod
|
||||
STORAGE__ROOT: /app/storage
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./backend/src:/app/src
|
||||
- ./backend/sessions:/app/sessions
|
||||
@@ -47,6 +49,7 @@ services:
|
||||
environment:
|
||||
RUN_ENVIRONMENT: prod
|
||||
STORAGE__ROOT: /app/storage
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./backend/src:/app/src
|
||||
- ./frontend/build:/app/static:ro
|
||||
|
||||
Reference in New Issue
Block a user