annotate compose/sample/docker-compose.yml @ 10:c9a3e1f8d500

add sample compose file
author smith@nwoca.org
date Mon, 14 Dec 2015 19:37:11 +0000
parents
children cf23acedd048
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
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
6 db:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
7 restart: always
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
8 image: djsmith/ssdt-postgres:1
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
9 volumes_from:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
10 - data
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
11 environment:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
12 - DB_NAME=usasdb
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
13 - DB_USER=usas
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
14 - DB_PASS=PleaseDontUseExamplePasswords
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
15 app:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
16 restart: always
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
17 image: djsmith/usas-app:snapshot
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
18 volumes_from:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
19 - data
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
20 ports:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
21 - "18004:8080"
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
22 links:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
23 - db:database
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
24 environment:
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
25 - DB_HOST=database
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
26 - DB_NAME=$${DATABASE_ENV_DB_NAME}
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
27 - DB_USER=$${DATABASE_ENV_DB_USER}
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
28 - DB_PASS=$${DATABASE_ENV_DB_PASS}
c9a3e1f8d500 add sample compose file
smith@nwoca.org
parents:
diff changeset
29