Created
July 22, 2020 12:21
-
-
Save urbontaitis/792d6fcff13184c4c526b40bbafed7bd to your computer and use it in GitHub Desktop.
App + db + secrets volume
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
app-db: | |
image: postgres:12.3 | |
restart: "no" | |
ports: | |
- "32710:5432" | |
environment: | |
POSTGRES_USER: app_service | |
POSTGRES_PASSWORD: haveaniceday | |
POSTGRES_DB: app_service | |
volumes: | |
- ../.db/schema:/docker-entrypoint-initdb.d | |
- ../.db/data/:/var/lib/postgresql/data/ | |
app-service: | |
depends_on: | |
- app-db | |
image: app-service:latest | |
restart: "no" | |
ports: | |
- "4000:8080" | |
environment: | |
ENVIRONMENT: "local-docker" | |
APPLICATION_CREDENTIALS: /app/secrets/key.json | |
volumes: | |
- ./secrets:/app/secrets/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment