-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (47 loc) · 957 Bytes
/
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
version: '3.9'
services:
db:
image: mysql:8.1.0
environment:
MYSQL_ROOT_PASSWORD: lek0212
MYSQL_DATABASE: workpermit
ports:
- '3307:3307'
networks:
- mynetwork
volumes:
- ./init-db/init.sql:/docker-entrypoint-initdb.d/init.sql
- workpermit_data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_USER: root
PMA_PASSWORD: lek0212
ports:
- '8081:80'
networks:
- mynetwork
depends_on:
- db
api:
build: .
environment:
DB_HOST: db
DB_USER: root
DB_PASSWORD: lek0212
DB_DATABASE: workpermit
JWT_SECRET: TxjRjKPoOoXGpt12WfuchOjMcb5Th44bcS7b8lk4YmAkecECzWI6VfI6HWsMrrW3
depends_on:
- db
ports:
- '8080:8080'
networks:
- mynetwork
networks:
mynetwork:
driver: bridge
volumes:
workpermit_data:
driver: local