- fix docker-compose.yml
This commit is contained in:
+23
-3
@@ -10,15 +10,35 @@ services:
|
|||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
POSTGRES_DB: family_safety
|
POSTGRES_DB: family_safety
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- ./data:/var/lib/postgresql/data
|
||||||
|
|
||||||
app:
|
app:
|
||||||
build: .
|
image: geotracker
|
||||||
container_name: family_safety_app
|
container_name: family_safety_app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "9090:9090"
|
- "127.0.0.1:9090:9090"
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
|
|
||||||
|
|
||||||
|
#services:
|
||||||
|
# db:
|
||||||
|
# image: postgres:16-alpine
|
||||||
|
# container_name: family_safety_db
|
||||||
|
# restart: unless-stopped
|
||||||
|
# volumes:
|
||||||
|
# - ./data:/var/lib/postgresql/data
|
||||||
|
#
|
||||||
|
# app:
|
||||||
|
# image: geotracker
|
||||||
|
# container_name: family_safety_app
|
||||||
|
# restart: unless-stopped
|
||||||
|
# ports:
|
||||||
|
# - "127.0.0.1:9090:9090"
|
||||||
|
# depends_on:
|
||||||
|
# - db
|
||||||
Reference in New Issue
Block a user