-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
76 lines (70 loc) · 1.5 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
version: '3'
services:
postgres:
container_name: mfcs_db
restart: always
image: postgres:10
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=docker
volumes:
- ./postgresdata/db:/var/lib/postgresql/data
redis:
image: 'redis:5-alpine'
container_name: mfcs_redis
command: redis-server
restart: always
env_file:
- './env/.env.prod.redis'
volumes:
- ./redis:/var/lib/redis/data
mfcs:
build: .
tty: true
stdin_open: true
container_name: mfcs
command: bundle exec rails s -p 3000 -b '0.0.0.0'
env_file:
- './env/.env.prod.mfcs'
volumes:
- ./:/home/mfcs
ports:
- "3000:3000"
- "3001:3001"
links:
- 'postgres'
- 'redis'
- 'elasticsearch'
sidekiq:
container_name: mfcs_sidekiq
links:
- 'postgres'
- 'redis'
build: .
command: bundle exec sidekiq -C config/sidekiq.yml
env_file:
- './env/.env.prod.mfcs'
volumes:
- ./:/home/mfcs
webpacker:
build: .
container_name: mfcs_webpack
env_file:
- './env/.env.prod.webpacker'
command: ./bin/webpack-dev-server
volumes:
- .:/home/mfcs
ports:
- '3035:3035'
elasticsearch:
image: elasticsearch:7.10.1
container_name: mfcs_elasticsearch
restart: always
env_file:
- './env/.env.es'
volumes:
- ./search_data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300