-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
93 lines (92 loc) · 2.48 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
version: "3"
services:
postgres:
image: postgres:11-alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_DB: 'manifold_production'
POSTGRES_HOST_AUTH_METHOD: 'trust'
networks:
- network1
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.7
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
xpack.security.enabled: 'false'
networks:
- network1
redis:
image: redis:alpine
volumes:
- ./data/redis:/data
networks:
- network1
api_cable:
image: manifoldscholarship/manifold-api:${MANIFOLD_TAG}
volumes:
- ./data/api/public:/opt/manifold/api/public
- ./data/sockets:/manifold_sockets
env_file:
- ./environment/manifold.env
networks:
- network1
command: ["./start-and-run", "bin/cable"]
api_clockwork:
image: manifoldscholarship/manifold-api:${MANIFOLD_TAG}
volumes:
- ./data/api/public:/opt/manifold/api/public
- ./data/sockets:/manifold_sockets
env_file:
- ./environment/manifold.env
- ./environment/rails.env
networks:
- network1
command: ["./start-and-run", "bin/zhong zhong.rb"]
api_rails:
image: manifoldscholarship/manifold-api:${MANIFOLD_TAG}
volumes:
- ./data/api/public:/opt/manifold/api/public
- ./data/sockets:/manifold_sockets
env_file:
- ./environment/manifold.env
command: ["./start-and-run", "bin/puma -C config/puma.rb"]
networks:
- network1
api_sidekiq:
image: manifoldscholarship/manifold-api:${MANIFOLD_TAG}
volumes:
- ./data/api/public:/opt/manifold/api/public
- ./data/sockets:/manifold_sockets
env_file:
- ./environment/manifold.env
networks:
- network1
command: ["./start-and-run", "bin/sidekiq"]
client:
image: manifoldscholarship/manifold-client:${MANIFOLD_TAG}
env_file:
- ./environment/manifold.env
volumes:
- ./data/api/public:/opt/manifold/api/public
- ./data/sockets:/manifold_sockets
command: yarn run start-docker
networks:
- network1
proxy:
image: manifoldscholarship/manifold-nginx:${MANIFOLD_TAG}
volumes:
- ./data/nginx/ssl:/etc/nginx/ssl
- ./data/api/public:/opt/manifold/api/public
- ./data/sockets:/manifold_sockets
ports:
- "4000:80"
- "4001:443"
command: ["start-nginx"]
networks:
- network1
#volumes:
# manifold_data:
# manifold_sockets:
networks:
network1: