-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
75 lines (65 loc) · 1.67 KB
/
docker-compose-dev.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
version: '3'
services:
harena-manager:
image: manager
ports:
- "10020:10020"
environment:
- ENV_SILENT=true
- HOST=0.0.0.0
- PORT=10020
- NODE_ENV=development
- APP_NAME=harena-manager
- APP_URL=http://0.0.0.0:10020
- CACHE_VIEWS=false
- APP_KEY=vJX37W4ycI2nkVoBbCM8OW1nsP5LAE8l
- DB_CONNECTION=mysql
- DB_HOST=harena-manager-database
- DB_PORT=3306
- DB_DATABASE=harena-manager
- DB_USER=jacinto
- DB_PASSWORD=jacinto
- HASH_DRIVER=bcrypt
depends_on:
- harena-manager-database
restart: always
networks:
- harena-manager
volumes:
- ./src/adonisjs:/app
- node-modules:/app/node_modules
harena-manager-database:
image: mysql:5.7
ports:
- "10021:3306"
volumes:
- harena-manager-database:/var/lib/mysql
environment: # will be replaced to .env vars, as in ${DB_PASSWORD}
- MYSQL_DATABASE=harena-manager
- MYSQL_USER=jacinto
- MYSQL_PASSWORD=jacinto
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_ROOT_PASSWORD=root
restart: always
networks:
- harena-manager
harena-manager-database-ui:
image: phpmyadmin/phpmyadmin:latest
ports:
- 10022:80
environment:
- PMA_ARBITRARY=0 # connection to any server
- PMA_HOST=harena-manager-database
- PMA_PORT=3306
depends_on:
- harena-manager-database
networks:
- harena-manager
volumes:
harena-manager-database:
driver: "local"
node-modules:
driver: "local"
networks:
harena-manager:
driver: bridge