-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (53 loc) · 1.12 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.3'
services:
backend:
image: backendlocmns
build:
context: ./christianDobe-loc-mns-Backend
dockerfile: Dockerfile
ports:
- "8082:9090"
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysqldb:3306/dobelocmns?serverTimezone=UTC&createDatabaseIfNotExist=true
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: 1234
depends_on:
- mysqldb
networks:
- backend-net
frontend:
image: frontendlocmns
build:
context: ./christianDobe-loc-mns-Frontend
dockerfile: Dockerfile
ports:
- "8083:80"
networks:
- backend-net
mysqldb:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: dobelocmns
ports:
- "3306:3306"
networks:
- backend-net
volumes:
- mysql-data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: mysqldb
PMA_PORT: 3306
PMA_ARBITRARY: 1
ports:
- "8085:80"
depends_on:
- mysqldb
networks:
- backend-net
networks:
backend-net:
volumes:
mysql-data: