-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (67 loc) · 1.52 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
version: "3"
services:
nginx:
image: nginx
links:
- slackerboard
- api
- socket_io
volumes:
- ./nginx/dev/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/common/routes.conf:/etc/nginx/routes.conf
- ./nginx/common/upstreams.conf:/etc/nginx/upstreams.conf
- ./emoji:/data/emoji
ports:
- 80:80
- 4200:4200
- 8080:8080
slackerboard:
build: slackerboard
command: yarn run dev
volumes:
- ./slackerboard:/usr/src/app
- slackerboard_node_modules:/usr/src/app/node_modules
environment:
- HOST=0.0.0.0
- PORT=8080
api: &rails_build
build: api
command: bundle exec rails s -p 5000 -b 0.0.0.0
environment:
- PORT=5000
env_file:
- ./api/.env
volumes:
- ./api:/home/app/webapp
- bundle:/usr/local/bundle
- ./emoji:/home/app/webapp/emoji/images
- ./slackerboard/config/emoji:/home/app/webapp/emoji/config
links:
- postgres
- redis
sidekiq:
<<: *rails_build
command: sidekiq -C config/sidekiq.yml
lurkerbot:
<<: *rails_build
command: rake lurkerbot:start
socket_io:
build: socket_io
command: npm start
links:
- redis
- api
volumes:
- ./socket_io:/usr/src/app
- socket_io_node_modules:/usr/src/app/node_modules
redis:
image: redis:3.2
postgres:
image: postgres:9.6
volumes:
- pg_data:/var/lib/postgresql/data
volumes:
bundle:
pg_data:
socket_io_node_modules:
slackerboard_node_modules: