-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (48 loc) · 1.07 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
version: '3.5'
volumes:
mysql_data:
driver: local
services:
mysqlsrv:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
- MYSQL_ROOT_HOST=%
- MYSQL_ROOT_PASSWORD=sefa_desafio_db
- MYSQL_DATABASE=sefa_desafio_db
- MYSQL_TCP_PORT=3307
ports:
- "3307:3307"
volumes:
- mysql_data:/var/lib/mysql
networks:
- minha-rede
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
links:
- mysqlsrv
ports:
- "8084:80"
environment:
- PMA_ARBITRARY=1
networks:
- minha-rede
sefa_imposto_api:
image: daniel101/sefa-imposto-api
restart: always
depends_on:
- mysqlsrv
links:
- mysqlsrv
ports:
- "7033:8090"
networks:
- minha-rede
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysqlsrv:3307/sefa_desafio_db?createDatabaseIfNotExist=true
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: sefa_desafio_db
networks:
minha-rede:
driver: bridge