10
|
1 data:
|
|
2 image: busybox
|
|
3 volumes:
|
|
4 - ${PWD}/dbdata:/var/lib/postgresql/data
|
|
5 - ${PWD}/config:/config
|
|
6 db:
|
|
7 restart: always
|
|
8 image: djsmith/ssdt-postgres:1
|
|
9 volumes_from:
|
|
10 - data
|
|
11 environment:
|
|
12 - DB_NAME=usasdb
|
|
13 - DB_USER=usas
|
|
14 - DB_PASS=PleaseDontUseExamplePasswords
|
|
15 app:
|
|
16 restart: always
|
|
17 image: djsmith/usas-app:snapshot
|
|
18 volumes_from:
|
|
19 - data
|
|
20 ports:
|
|
21 - "18004:8080"
|
|
22 links:
|
|
23 - db:database
|
|
24 environment:
|
|
25 - DB_HOST=database
|
|
26 - DB_NAME=$${DATABASE_ENV_DB_NAME}
|
|
27 - DB_USER=$${DATABASE_ENV_DB_USER}
|
|
28 - DB_PASS=$${DATABASE_ENV_DB_PASS}
|
|
29
|