-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (76 loc) · 1.63 KB
/
docker-compose.yml
File metadata and controls
82 lines (76 loc) · 1.63 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
82
version: '3.8'
services:
mysql:
image: mysql:8.0
container_name: csapp_mysql_dev
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASS:-root}
MYSQL_DATABASE: ${DB_NAME:-csapp_db}
ports:
- "3307:3306"
volumes:
- mysql_data_dev:/var/lib/mysql
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
timeout: 20s
retries: 10
networks:
- csapp_network
email_service:
build:
context: ./apps/email
dockerfile: Dockerfile
container_name: csapp_email_dev
ports:
- "9089:9090"
volumes:
- ./apps/email:/app
- /app/node_modules
command: npm start
env_file:
- .env.development
networks:
- csapp_network
backend:
build:
context: ./apps/backend
dockerfile: Dockerfile
container_name: csapp_backend_dev
ports:
- "8079:8080"
volumes:
- ./apps/backend:/app
- /app/node_modules
env_file:
- .env.development
environment:
DB_HOST: mysql
EMAIL_API_URL: http://email_service:9090
command: npm start
depends_on:
mysql:
condition: service_healthy
networks:
- csapp_network
frontend:
build:
context: ./apps/frontend
dockerfile: Dockerfile
target: dev
container_name: csapp_frontend_dev
ports:
- "5172:5173"
volumes:
- ./apps/frontend:/app
- /app/node_modules
env_file:
- .env.development
environment:
VITE_API_URL: http://localhost:8079/api
networks:
- csapp_network
networks:
csapp_network:
driver: bridge
volumes:
mysql_data_dev: