-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.multiple.yml
88 lines (80 loc) · 1.84 KB
/
docker-compose.multiple.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
version: '3.4'
services:
redis:
command: redis-server
image: redis:alpine
db:
image: 'mysql:5.7'
environment:
MYSQL_ROOT_PASSWORD: "VKikCMMgm2qg"
volumes:
- db-datavolume:/var/lib/mysql
api_remote:
build:
context: ./
target: api_remote
image: airett-server-remote
command: bash -c "rm -f tmp/pids/server.pid && ruby bin/rails s -p 3002 -b '0.0.0.0' -e development_remote"
volumes:
- ./rails:/home/app/webapp
- ./rails/tmp2:/home/app/webapp/tmp
ports:
- "3002:3002"
environment:
- TEST_ROUTES=remote
depends_on:
- db
api_local:
build:
context: ./
target: api_local
image: airett-server-local
command: bash -c "rm -f tmp/pids/server.pid && ruby bin/rails s -p 3001 -b '0.0.0.0' -e development_local"
volumes:
- ./rails:/home/app/webapp
ports:
- "3001:3001"
environment:
- TEST_ROUTES=local
- PROCESS_PERSONAL_FILES=true
depends_on:
- db
sidekiq_local:
build:
context: ./
target: api_local
image: airett-server-local
volumes:
- ./rails:/home/app/webapp
depends_on:
- db
- redis
command: bundle exec sidekiq -e development_local
sidekiq_remote:
build:
context: ./
target: api_remote
image: airett-server-remote
volumes:
- ./rails:/home/app/webapp
depends_on:
- db
- redis
command: bundle exec sidekiq -e development_remote
udp_responder_local:
build:
context: ./udp_responder
dockerfile: udp_responder.dockerfile
environment:
- UDP_PORT=4001
ports:
- "0.0.0.0:4001:4001"
- "0.0.0.0:4001:4001/udp"
depends_on:
- api_local
- api_remote
- sidekiq_local
- sidekiq_remote
restart: unless-stopped
volumes:
db-datavolume: