-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yaml
More file actions
77 lines (72 loc) · 1.53 KB
/
docker-compose-dev.yaml
File metadata and controls
77 lines (72 loc) · 1.53 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
vue-app:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: vue-app
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- ./certs:/app/certs
command: npm run serve:dev
environment:
- NODE_ENV=development
spring-boot:
build:
context: ./backend
dockerfile: Dockerfile
container_name: spring-boot
restart: unless-stopped
ports:
- "8076:8076"
environment:
- SPRING_PROFILES_ACTIVE=local
- JAVA_OPTS=-Xms512m -Xmx1024m
networks:
- redis-network
- my-sql-network
depends_on:
mysql:
condition: service_healthy
mysql:
image: mysql:8.0
container_name: mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "E103_DB"
ports:
- "3307:3306"
volumes:
- my-sql-volume:/var/lib/mysql
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- my-sql-network
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
retries: 5
start_period: 10s
redis:
image: docker.io/redis:7.4.1-alpine
platform: linux/amd64
container_name: redis
restart: unless-stopped
ports:
- 6379:6379
volumes:
- redis:/data
command: >
redis-server
--bind 0.0.0.0
networks:
- redis-network
volumes:
my-sql-volume:
redis:
networks:
my-sql-network:
driver: bridge
redis-network:
driver: bridge