-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (52 loc) · 1.35 KB
/
docker-compose.yaml
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.7"
services:
db:
image: mysql:latest
container_name: mysql-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: marvelSnapDeck
MAX_ALLOWED_PACKET: 1024M
ports:
- "3306:3306"
networks:
- marvelSnapDeckNetwork
volumes:
- ./Database/my.cnf:/etc/mysql/my.cnf
- ./Database/dump.sql:/docker-entrypoint-initdb.d/init.sql
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
restart: always
environment:
UPLOAD_LIMIT: 100M
SPRING_DATASOURCE_URL: jdbc:mysql://db:3306/marvelSnapDeck
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: root
ports:
- "8082:80"
depends_on:
- db
networks:
- marvelSnapDeckNetwork
marvel-snap-deck:
image: momcilovicluka/marvel-snap-deck
container_name: marvel-snap-deck
restart: always
ports:
- "8080:8080"
depends_on:
- db
build:
context: .
dockerfile: Dockerfile
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql-db:3306/marvelSnapDeck?createDatabaseIfNotExist=true
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: root
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.mysql.cj.jdbc.Driver
networks:
- marvelSnapDeckNetwork
networks:
marvelSnapDeckNetwork: