annotate compose/sample/docker-compose.yml @ 25:727f4cbded5e

add usps backup script
author Dave smith <smith@nwoca.org>
date Sun, 17 Jan 2016 19:50:35 -0500
parents cf23acedd048
children
rev   line source
10
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
1 data:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
2 image: busybox
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
3 volumes:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
4 - ${PWD}/dbdata:/var/lib/postgresql/data
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
5 - ${PWD}/config:/config
11
cf23acedd048 add backup volume to data container
smith@nwoca.org
parents: 10
diff changeset
6 - ${PWD}/backup:/backup
10
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
7 db:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
8 restart: always
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
9 image: djsmith/ssdt-postgres:1
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
10 volumes_from:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
11 - data
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
12 environment:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
13 - DB_NAME=usasdb
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
14 - DB_USER=usas
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
15 - DB_PASS=PleaseDontUseExamplePasswords
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
16 app:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
17 restart: always
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
18 image: djsmith/usas-app:snapshot
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
19 volumes_from:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
20 - data
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
21 ports:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
22 - "18004:8080"
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
23 links:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
24 - db:database
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
25 environment:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
26 - DB_HOST=database
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
27 - DB_NAME=$${DATABASE_ENV_DB_NAME}
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
28 - DB_USER=$${DATABASE_ENV_DB_USER}
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
29 - DB_PASS=$${DATABASE_ENV_DB_PASS}
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
30