-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
93 lines (84 loc) · 2.62 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Docker Compose file to start a full RECYCLUS node.
#
# Required env variables:
#
# RECYCLUS_CONFIG : points to the root RECYCLUS configuration directory
# example: export RECYCLUS_CONFIG=/Users/yarden/RECYCLUS_CONFIG
# RECYCLUS_HOSTNAME: HostName or IP address for apache httpd front-end server
# example: export RECYCLUS_HOSTNAME=my.recyclus.node
# example: export RECYCLUS_HOSTNAME=`docker-machine ip`
# RECYCLUS_VERSION: version of RECYCLUS/Docker distribution
# example: export RECYCLUS_VERSION=1.0
version: "3.4"
services:
redis:
image: "redis:alpine"
command: redis-server --appendonly yes
volumes:
- redis:/data
networks:
- cyclus
batch:
image: ${RECYCLUS_HUB}/recyclus-batch:${RECYCLUS_VERSION-latest}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- redis
networks:
- cyclus
worker:
image: ${RECYCLUS_HUB}/recyclus-worker:${RECYCLUS_VERSION-latest}
depends_on:
- redis
networks:
- cyclus
datastore:
image: ${RECYCLUS_HUB}/recyclus-datastore:${RECYCLUS_VERSION-latest}
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME_FILE: /recyclus/secrets/mongo-admin
MONGO_INITDB_ROOT_PASSWORD_FILE: /recyclus/secrets/mongo-password
volumes:
- "$RECYCLUS_CONFIG/secrets/mongo-password:/recyclus/secrets/mongo-password:ro"
- "$RECYCLUS_CONFIG/secrets/mongo-admin:/recyclus/secrets/mongo-admin:ro"
- datastore-files:/files
depends_on:
- datastore-db
networks:
- cyclus
datastore-db:docker
image: "mongo:latest"
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME_FILE: /recyclus/secrets/mongo-admin
MONGO_INITDB_ROOT_PASSWORD_FILE: /recyclus/secrets/mongo-password
volumes:
- "$RECYCLUS_CONFIG/secrets/mongo-password:/recyclus/secrets/mongo-password:ro"
- "$RECYCLUS_CONFIG/secrets/mongo-admin:/recyclus/secrets/mongo-admin:ro"
- datastore-info:/data/db
networks:
- cyclus
gateway:
image: ${RECYCLUS_HUB}/recyclus-gateway:${RECYCLUS_VERSION-latest}
ports:
- "5000:80"
environment:
JWT_SECRET_KEY_FILE: /recyclus/secrets/jwt-key
volumes:
- "$RECYCLUS_CONFIG/certificates/hostcert:/recyclus/certificates/:ro"
- "$RECYCLUS_CONFIG/secrets/gateway-password:/recyclus/secrets/gateway-password:ro"
- "$RECYCLUS_CONFIG/secrets/jwt-key:/recyclus/secrets/jwt-key:ro"
- gateway-db:/data
networks:
- cyclus
depends_on:
- redis
- batch
- datastore
networks:
cyclus:
volumes:
redis:
gateway-db:
datastore-files:
datastore-info: