-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.03 KB
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
services:
mysql:
container_name: mysql
profiles: [app, dependents]
image: mysql:latest
restart: always
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --default-time-zone=-03:00
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: financialbudgetdb
MYSQL_USER: financialbudgetuser
MYSQL_PASSWORD: cadI1fzFK3t#El%I
TZ: America/Sao_Paulo
ports:
- "3306:3306"
networks:
- personalbudget-network
personal_budget:
image: brunodev1988/personalbudget
profiles: [app]
build:
context: .
dockerfile: Dockerfile
container_name: personal_budget
restart: always
environment:
SPRING_PROFILES_ACTIVE: local
DB_HOST: mysql
DB_DATABASE: financialbudgetdb
DB_USERNAME: financialbudgetuser
DB_PASSWORD: cadI1fzFK3t#El%I
ports:
- "8080:8080"
depends_on:
- mysql
networks:
- personalbudget-network
volumes:
dbbase:
networks:
personalbudget-network:
driver: bridge