Permalink
Switch branches/tags
Nothing to show
Find file Copy path
03596c1 Oct 6, 2017
1 contributor

Users who have contributed to this file

58 lines (51 sloc) 992 Bytes
version: "3.1"
services:
reverse_proxy:
build: ./reverse_proxy
user: nginx
database:
build:
context: ./database
image: atsea_db
user: postgres
environment:
POSTGRES_USER: gordonuser
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
POSTGRES_DB: atsea
ports:
- "5432:5432"
networks:
- back-tier
secrets:
- postgres_password
appserver:
build:
context: app
dockerfile: Dockerfile
image: atsea_app
user: gordon
ports:
- "8080:8080"
- "5005:5005"
networks:
- front-tier
- back-tier
secrets:
- postgres_password
payment_gateway:
build:
context: payment_gateway
networks:
- payment
secrets:
- payment_token
networks:
front-tier:
back-tier:
payment:
driver: overlay
secrets:
postgres_password:
file: ./devsecrets/postgres_password
payment_token:
file: ./devsecrets/payment_token