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