Add env customization
This commit is contained in:
@@ -4,26 +4,26 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- uploads_volume:/usr/app/uploads
|
- uploads_volume:/usr/app/uploads
|
||||||
environment:
|
environment:
|
||||||
- HOST=http://0.0.0.0
|
- HOST=${HOST}
|
||||||
- DATABASE_URL=postgres://user:password@db:5432/db
|
- DATABASE_URL=${DATABASE_URL}
|
||||||
- JWT_SECRET=PqRwLF2rhHe8J21oBeHychangeit
|
- JWT_SECRET=${JWT_SECRET}
|
||||||
- LOGGER_LEVEL=info
|
- LOGGER_LEVEL=${LOGGER_LEVEL}
|
||||||
- BINDING=0.0.0.0
|
- BINDING=${BINDING}
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
ports:
|
expose:
|
||||||
- 5150:5150
|
- ${PORT}
|
||||||
db:
|
db:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=user
|
- POSTGRES_USER=${POSTGRES_USER}
|
||||||
- POSTGRES_PASSWORD=password
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
- POSTGRES_DB=db
|
- POSTGRES_DB=${POSTGRES_DB}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U user"]
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
Reference in New Issue
Block a user