harden docker deployment
This commit is contained in:
14
.dockerignore
Normal file
14
.dockerignore
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
.git/
|
||||||
|
.history/
|
||||||
|
.sixth/
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
.pytest_cache/
|
||||||
|
.ruff_cache/
|
||||||
|
.mypy_cache/
|
||||||
|
.venv/
|
||||||
|
venv/
|
||||||
|
dist/
|
||||||
|
build/
|
||||||
@@ -6,7 +6,7 @@ services:
|
|||||||
POSTGRES_USER: ${POSTGRES_USER:-drivers}
|
POSTGRES_USER: ${POSTGRES_USER:-drivers}
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-drivers}
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-drivers}
|
||||||
ports:
|
ports:
|
||||||
- "${POSTGRES_PORT:-5433}:5432"
|
- "127.0.0.1:${POSTGRES_PORT:-5433}:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql/data
|
- pgdata:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -27,7 +27,7 @@ services:
|
|||||||
API_BASE_URL: ${API_BASE_URL:-http://api:8000}
|
API_BASE_URL: ${API_BASE_URL:-http://api:8000}
|
||||||
WEBAPP_URL: ${WEBAPP_URL:-http://localhost:8000}
|
WEBAPP_URL: ${WEBAPP_URL:-http://localhost:8000}
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "127.0.0.1:8000:8000"
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
Reference in New Issue
Block a user