generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
59 lines (54 loc) · 1.13 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
version: "3.4"
services:
admin-db:
platform: linux/amd64
image: "mysql:8.0"
env_file: .env.${ENV}
expose:
- "3306"
ports:
- "3307:3306"
volumes:
- datavolume:/var/lib/mysql
app:
platform: linux/amd64
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/staff-device-dns-dhcp-admin
- node_modules:/home/app/staff-device-dns-dhcp-admin/node_modules
links:
- admin-db
expose:
- "3000"
ports:
- "3000:3000"
env_file: .env.${ENV}
networks:
- default
- dhcp
phpmyadmin:
platform: linux/amd64
image: "phpmyadmin"
links:
- admin-db
expose:
- "8080"
ports:
- "8080:80"
env_file: .phpmyadmin
networks:
- default
- dhcp
volumes:
node_modules:
datavolume:
networks:
dhcp:
name: "staff-device-dhcp-server_default"
external: True