view compose/preview/training.yml @ 47:a0283d218ff5

handle training instances with prefix in directory name. use docker-compose.yml as template instead of linking. set application property to reduce memory requirements
author smith@nwoca.org
date Thu, 04 Feb 2016 22:39:09 +0000
parents 297b56dfba19
children 809ba4a960bc
line wrap: on
line source
usasdb:
  restart: unless-stopped
  image: docker.ssdt.io/trainingdb-usas
  environment:
    - DB_NAME=usasdb
    - DB_USER=usas
    - DB_PASS=usasdefault
usasapp:
  restart: unless-stopped
  image: docker.ssdt.io/usas-app:preview
  volumes:
    - ${PWD}/config:/config
  environment:
    - DB_HOST=usas-database
    - DB_NAME=usasdb
    - DB_USER=usas
    - DB_PASS=usasdefault
  links:
    - usasdb:usas-database
uspsdb:
  restart: unless-stopped
  image: docker.ssdt.io/trainingdb-usps
  environment:
    - DB_NAME=uspsdb
    - DB_USER=usps
    - DB_PASS=uspsdefault
uspsapp:
  restart: unless-stopped
  image: docker.ssdt.io/usps-app:preview
  volumes:
    - ${PWD}/config:/config
  environment:
    - DB_HOST=usps-database
    - DB_NAME=uspsdb
    - DB_USER=usps
    - DB_PASS=uspsdefault
  links:
    - uspsdb:usps-database