forked from ManifoldScholar/manifold
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
98 lines (87 loc) · 2.14 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
94
95
96
97
98
# Copied from github.com/ManifoldScholar/manifold-docker-compose (v8.1.1)
version: "3"
x-api: &api
image: ghcr.io/scientist-softserv/princeton-manifold/api:${TAG:-latest}
build:
context: .
target: manifold-api
args:
- EXTRA_APK_PACKAGES=less vim bash rsync
volumes:
- ./data/api/public:/opt/manifold/api/public
env_file:
- .env.development
networks:
- internal
services:
postgres:
image: postgres:13.12-alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_DB: 'manifold_production'
POSTGRES_HOST_AUTH_METHOD: 'trust'
networks:
- internal
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.7
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
xpack.security.enabled: 'false'
networks:
- internal
redis:
image: redis:alpine
volumes:
- ./data/redis:/data
networks:
- internal
api_cable:
<<: *api
command: ["./start-and-run", "bin/cable"]
api_clockwork:
<<: *api
env_file:
- .env.development
environment:
- SERVER_PORT=4000
command: ["./start-and-run", "bin/zhong zhong.rb"]
api_rails:
<<: *api
command: ["./start-and-run", "bin/puma -C config/puma.rb"]
api_sidekiq:
<<: *api
command: ["./start-and-run", "bin/sidekiq"]
client:
image: ghcr.io/scientist-softserv/princeton-manifold/client:${TAG:-latest}
build:
context: .
target: manifold-client
args:
- EXTRA_APK_PACKAGES=less vim bash rsync
env_file:
- .env.development
volumes:
- ./data/api/public:/opt/manifold/api/public
command: yarn run start-docker
networks:
- internal
nginx:
image: ghcr.io/scientist-softserv/princeton-manifold/nginx:${TAG:-latest}
build:
context: .
target: manifold-nginx
args:
- EXTRA_APK_PACKAGES=less vim bash rsync
env_file:
- .env.development
volumes:
- ./data/nginx/ssl:/etc/nginx/ssl
- ./data/api/public:/opt/manifold/api/public
ports:
- "4000:80"
- "4001:443"
networks:
- internal
networks:
internal: