-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (67 loc) · 1.64 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
version: '2'
services:
web:
image: registry.spin.nersc.gov/stefanl/stefanl-nginx-proxy:v1
volumes:
- /global/project/projectdirs/isguser/spin/fruitfly/web/images:/srv:ro
ports:
- 55100:8080
cap_drop:
- ALL
user: 46311:71216
group_add:
- nginx
labels:
io.rancher.container.pull_image: always
retain_ip: true
app:
image: registry.spin.nersc.gov/stefanl/stefanl-flask-fruitfly:v2
environment:
MONGO_INITDB_ROOT_USERNAME: mongouser
MONGO_INITDB_ROOT_PASSWORD_FILE: /run/secrets/mongo-initdb-password
secrets:
- source: db.fruitfly-demo.mongo-initdb-password
target: mongo-initdb-password
mode: '0444'
uid: '0'
gid: '0'
# - source: app.fruitfly-demo.ssh_private_key
# target: ssh_private_key
# mode: '0400'
# uid: '46311'
# gid: '71216'
labels:
io.rancher.container.pull_image: always
retain_ip: true
db:
image: mongo:4
environment:
MONGO_INITDB_ROOT_USERNAME: mongouser
MONGO_INITDB_ROOT_PASSWORD_FILE: /run/secrets/mongo-initdb-password
volumes:
- db.fruitfly-demo:/data/db
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
- DAC_OVERRIDE
secrets:
- source: db.fruitfly-demo.mongo-initdb-password
target: mongo-initdb-password
mode: '0444'
uid: '0'
gid: '0'
labels:
io.rancher.container.pull_image: always
secrets:
db.fruitfly-demo.mongo-initdb-password:
file: mongo-initdb-password
#secrets:
# app.fruitfly-demo.ssh_private_key:
# external: 'true'
volumes:
db.fruitfly-demo:
driver: rancher-nfs
external: true