-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-template.yml
More file actions
73 lines (68 loc) · 2.45 KB
/
docker-compose-template.yml
File metadata and controls
73 lines (68 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
############################################################
# Launch for Webapollo container for the eBioKit
# This is a template, the following values must be replaced:
# - $${INSTANCE}, name for the instance
# - $${ADMIN_EMAIL}, email for admin user
# - $${ADMIN_PASS}, email for admin user
# - $${ADMIN_FIRST_NAME}, name for admin user
# - $${ADMIN_LAST_NAME}, last name for admin user
# - $${APP_1_PORT_1}, port number for Webapollo instance
# - $${DATA_LOCATION}, location for the application data
# TODO:
# - Tomcat logs
############################################################
version: '2'
services:
$${INSTANCE}-webapollo:
image: ebiokit/docker-webapollo
container_name: $${INSTANCE}-webapollo
environment:
- APOLLO_ADMIN_EMAIL=$${ADMIN_EMAIL}
- APOLLO_ADMIN_PASSWORD=$${ADMIN_PASS}
- APOLLO_ADMIN_FIRST_NAME=$${ADMIN_FIRST_NAME}
- APOLLO_ADMIN_LAST_NAME=$${ADMIN_LAST_NAME}
# Optional, do not change
- WEBAPOLLO_DB_HOST=webapollo-db
- WEBAPOLLO_DB_PORT=5432
- WEBAPOLLO_DB_NAME=postgres
- WEBAPOLLO_DB_USERNAME=postgres
- WEBAPOLLO_DB_PASSWORD=mysecretpassword
- WEBAPOLLO_CHADO_DB_HOST=webapollo-chado
- WEBAPOLLO_CHADO_DB_PORT=5432
- WEBAPOLLO_CHADO_DB_NAME=postgres
- WEBAPOLLO_CHADO_DB_USERNAME=postgres
- WEBAPOLLO_CHADO_DB_PASSWORD=mysecretpassword
links:
- $${INSTANCE}-webapollo-postgres:webapollo-db
- $${INSTANCE}-webapollo-chado:webapollo-chado
depends_on:
- $${INSTANCE}-webapollo-data
volumes_from:
- $${INSTANCE}-webapollo-data
ports:
- "$${APP_1_PORT_1}:8080"
$${INSTANCE}-webapollo-postgres:
image: postgres
container_name: $${INSTANCE}-webapollo-postgres
environment:
- POSTGRES_PASSWORD=mysecretpassword
- PGDATA=/data/postgresql
depends_on:
- $${INSTANCE}-webapollo-data
volumes_from:
- $${INSTANCE}-webapollo-data
$${INSTANCE}-webapollo-chado:
image: postgres
container_name: $${INSTANCE}-webapollo-chado
environment:
- POSTGRES_PASSWORD=mysecretpassword
- PGDATA=/data/chado
depends_on:
- $${INSTANCE}-webapollo-data
volumes_from:
- $${INSTANCE}-webapollo-data
$${INSTANCE}-webapollo-data:
image: busybox
container_name: $${INSTANCE}-webapollo-data
volumes:
- $${DATA_LOCATION}/data:/data