-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
81 lines (75 loc) · 1.48 KB
/
docker-compose.dev.yml
File metadata and controls
81 lines (75 loc) · 1.48 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
78
79
80
81
services:
proxy:
build:
context: ./nginx
dockerfile: Dockerfile.dev
container_name: proxy_dev
ports:
- "443:443"
- "80:80"
volumes:
- nginx_dev_config:/etc/nginx
restart: always
depends_on:
- backend
- frontend
networks:
- dev-network
env_file:
- ./nginx/.env
mysql:
image: mysql:8.0
container_name: mysql-container
env_file:
- backend/.env
volumes:
- mysql_dev_data:/var/lib/mysql
networks:
- dev-network
ports:
- 3307:3306
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 15s
timeout: 10s
retries: 10
redis:
image: redis:latest
container_name: redis-container
restart: always
networks:
- dev-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
volumes:
- redis_dev_data:/data
backend:
build:
context: ./backend
container_name: backend
env_file:
- backend/.env
networks:
- dev-network
depends_on:
- mysql
- redis
frontend:
build:
context: ./frontend
args:
VITE_API_BASE_URL: https://localhost/api
VITE_WEBSOCKET_URL: wss://localhost/api/helloworld
container_name: frontend
networks:
- dev-network
networks:
dev-network:
driver: bridge
volumes:
mysql_dev_data:
redis_dev_data:
nginx_dev_config: