-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (57 loc) · 1.35 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
version: "3.4"
services:
db:
platform: linux/x86_64
image: mysql:8.0
env_file: .env.${ENV}
expose:
- "3306"
ports:
- "3306:3306"
volumes:
- datavolume:/var/lib/mysql
networks:
- adminnet
command: "--default-authentication-plugin=caching_sha2_password"
app:
build:
context: .
args:
UID: "${UID}"
BUNDLE_INSTALL_FLAGS: "${BUNDLE_INSTALL_FLAGS:- --jobs 20 --retry 5 --full-index}"
user: "${UID}:${UID}"
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/home/app/moj-network-access-admin
- node_modules:/home/app/moj-network-access-admin/node_modules
links:
- db
expose:
- "3000"
ports:
- "3000:3000"
env_file: .env.${ENV}
networks:
- adminnet
background_worker:
build:
context: .
args:
UID: "${UID}"
BUNDLE_INSTALL_FLAGS: "${BUNDLE_INSTALL_FLAGS:- --jobs 20 --retry 5}"
user: "${UID}:${UID}"
command: bash -c "bundle exec rake jobs:work"
volumes:
- .:/home/app/moj-network-access-admin
- node_modules:/home/app/moj-network-access-admin/node_modules
links:
- db
env_file: .env.${ENV}
networks:
- adminnet
volumes:
node_modules:
datavolume:
networks:
adminnet:
name: adminnet