-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (76 loc) · 1.89 KB
/
docker-compose.yml
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
74
75
76
77
78
79
version: '3.7'
secrets:
db_secrets:
file: 'secrets/db.secret'
glacier_secrets:
file: 'secrets/glacier.secret'
guardian_db_password:
external: true
guardian_db_root_password:
external: true
guardian_secrets:
file: 'secrets/guardian.secret'
bulwark_gitannex_secrets:
file: 'secrets/bulwark_gitannex.secret'
bulwark_rsa:
external: true
configs:
known_hosts:
file: known_hosts
name: known_hosts_v1
ssh_config:
file: ssh_config
name: ssh_config_v1
services:
db:
image: 'mysql:5.7'
environment:
MYSQL_DATABASE: guardian_db
MYSQL_PASSWORD_FILE: /run/secrets/guardian_db_password
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/guardian_db_root_password
MYSQL_USER: guardian_user
secrets:
- guardian_db_password
- guardian_db_root_password
volumes:
- 'db:/var/lib/mysql'
guardian:
image: 'quay.io/upennlibraries/guardian:master'
depends_on:
- 'db'
secrets:
- db_secrets
- glacier_secrets
- guardian_secrets
- bulwark_gitannex_secrets
- source: bulwark_rsa
target: /root/.ssh/bulwark_rsa
mode: 0600
configs:
- source: 'known_hosts'
target: '/root/.ssh/known_hosts'
- source: 'ssh_config'
target: '/root/.ssh/config'
volumes:
- 'guardian:/usr/src/app'
- 'guardian_todos:/todos'
- 'openn_site_data:/openn_site_data'
- 'openn_walters_data:/openn_walters_data'
- '${LOCAL_ZIP_WORKSPACE}:/zip_workspace'
- '${LOCAL_LOG_FILE}:/usr/src/app/logs'
volumes:
db:
guardian:
guardian_todos:
openn_site_data:
driver: local
driver_opts:
type: nfs
o: addr=${OPENN_SITE_DATA_ADDRPERMS}
device: ":${OPENN_SITE_DATA_DEVICE}"
openn_walters_data:
driver: local
driver_opts:
type: nfs
o: addr=${OPENN_WALTERS_ADDRPERMS}
device: ":${OPENN_WALTERS_DEVICE}"