forked from bycza-zagroda/track-expenses-app-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
51 lines (46 loc) · 903 Bytes
/
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
version: '3.8'
services:
backend:
build: .
container_name: backend
restart: always
networks:
- tea_network
ports:
- "8080:8080"
depends_on:
- database
environment:
SPRING_PROFILES_ACTIVE: dev
DB_SERVER: database
DB_PORT: 3306
DB_USER: root
DB_PASSWORD: root
DB_NAME: trackexpensesapp
database:
container_name: database
image: mysql:8
restart: always
networks:
- tea_network
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_PASSWORD: root
MYSQL_DATABASE: trackexpensesapp
MYSQL_USER: user
deploy:
resources:
limits:
cpus: '0.5'
memory: '512M'
reservations:
memory: '128M'
ports:
- '3308:3306'
volumes:
- dbstore:/var/lib/mysql
networks:
tea_network:
driver: bridge
volumes:
dbstore: