view compose/sample/docker-compose.yml @ 227:0add40f5c5b7 release/v1.7.0

flow: Closed <release> 'v1.7.0'.
author smith@nwoca.org
date Mon, 09 Oct 2017 21:35:35 +0100
parents cf23acedd048
children
line wrap: on
line source
data:
  image: busybox
  volumes:
    - ${PWD}/dbdata:/var/lib/postgresql/data
    - ${PWD}/config:/config
    - ${PWD}/backup:/backup
db:
  restart: always
  image: djsmith/ssdt-postgres:1
  volumes_from:
    - data
  environment:
    - DB_NAME=usasdb
    - DB_USER=usas
    - DB_PASS=PleaseDontUseExamplePasswords
app:
  restart: always
  image: djsmith/usas-app:snapshot
  volumes_from:
    - data
  ports:
    - "18004:8080"
  links:
    - db:database
  environment:
    - DB_HOST=database
    - DB_NAME=$${DATABASE_ENV_DB_NAME}
    - DB_USER=$${DATABASE_ENV_DB_USER}
    - DB_PASS=$${DATABASE_ENV_DB_PASS}