Skip to content

Instantly share code, notes, and snippets.

@bkatiemills
Created April 21, 2019 21:39
Show Gist options
  • Save bkatiemills/bbda1f57b572c3ba72dd20d364dd703f to your computer and use it in GitHub Desktop.
Save bkatiemills/bbda1f57b572c3ba72dd20d364dd703f to your computer and use it in GitHub Desktop.
basic compose file for demo app
version: "3.6"
services:
database:
environment:
POSTGRES_DB: ddev
POSTGRES_PASSWORD_FILE: /run/secrets/postgres-password
image: ${dockerID}/ddev_db
build:
context: database
restart: always
secrets:
- postgres-password
volumes:
- postgres-data:/var/lib/postgresql/data
api:
build:
context: api
image: ${dockerID}/ddev_api
secrets:
- source: postgres-password
target: postgres_password
environment:
SPRING_PROFILES_ACTIVE: postgres
ui:
build:
context: ui
image: ${dockerID}/ddev_ui
ports:
- "3000:3000"
volumes:
postgres-data: {}
secrets:
postgres-password:
file: devsecrets/postgres_password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment