-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
112 lines (97 loc) · 2.61 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: '3'
services:
harena-space:
image: space
ports:
- "10010:10010"
environment:
- ENV_SILENT=true
- HOST=0.0.0.0
- PORT=10010
- NODE_ENV=development
- APP_NAME=harena-space
- APP_URL=http://0.0.0.0:10010
- CACHE_VIEWS=false
- APP_KEY=Xw8Ctu827gw290qDx4GSnUlyTY3a6x
- HASH_DRIVER=bcrypt
- HARENA_SPACE_URL=http://localhost:10010
- HARENA_SPACE_API_VERSION=v1
- HARENA_MANAGER_URL=http://manager:10020
- HARENA_MANAGER_URL_CLIENT=http://localhost:10020
- HARENA_MANAGER_API_VERSION=v1
- HARENA_LOGGER_URL=http://localhost:10030
- HARENA_LOGGER_API_VERSION=v1
restart: on-failure:5
networks:
- harena-space
volumes:
- ./src/adonisjs:/app
- node-modules:/app/node_modules
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: on-failure:5
networks:
- harena-space
volumes:
- harena-manager-artifacts:/app/public/resources
- harena-manager-node-modules:/app/node_modules
- ../harena-manager/src/adonisjs:/app
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: on-failure:5
networks:
- harena-space
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-space
volumes:
harena-manager-database:
driver: "local"
harena-manager-artifacts:
driver: "local"
harena-manager-node-modules:
driver: "local"
node-modules:
driver: "local"
networks:
harena-space:
driver: bridge