-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
70 lines (65 loc) · 1.65 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
version: "3.1"
services:
apir:
build:
context: ./apir
dockerfile: dev.Dockerfile
container_name: dime_apir
volumes:
- ./apir:/apir
working_dir: /apir
command: "bash -c 'bundle install && bundle exec rails server -p 8000 -b 0.0.0.0'"
stdin_open: true
tty: true
depends_on:
- mysql
ports:
- "38001:8000"
environment:
- DATABASE_HOST=mysql
- DATABASE_USERNAME=root
- DATABASE_PASSWORD=
- DEVISE_JWT_SECRET_KEY=verysecret
- DEVISE_SECRET_KEY=verysecret
guard:
build:
context: ./apir
dockerfile: dev.Dockerfile
volumes:
- ./apir:/apir
working_dir: /apir
command: bash -c "bundle update guard guard-rspec guard-rubocop guard-brakeman && bundle exec guard --no-interactions"
depends_on:
- mysql
environment:
- DATABASE_HOST=mysql
- DATABASE_USERNAME=root
- DATABASE_PASSWORD=
- DEVISE_JWT_SECRET_KEY=verysecret
- DEVISE_SECRET_KEY=verysecret
mysql:
image: mysql:8.1
command: mysqld --sql_mode="NO_ENGINE_SUBSTITUTION"
container_name: dime_db
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=1
ports:
- "33306:3306"
volumes:
- ./database:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: dime_phpmyadmin
environment:
- PMA_ARBITRARY=1
ports:
- 38080:80
frontend:
image: node:12
container_name: dime_frontend
volumes:
- ./frontend:/var/frontend
working_dir: /var/frontend
ports:
- "33000:3000"
command: bash -c "yarn install && yarn run start"