-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 1.07 KB
/
docker-compose.yml
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
version: '3'
services:
mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: vibesyncpass
MYSQL_DATABASE: vibesyncdb
MYSQL_USER: vibesyncuser
MYSQL_PASSWORD: vibesyncpass
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p$vibesyncpass"]
interval: 5s
timeout: 30s
retries: 5
start_period: 30s
volumes:
- mysql-data:/var/lib/mysql
ports:
- "3306:3306"
networks:
- backend_network
backend:
build:
context: ./VibeSyncBackend/backend
environment:
- ASPNETCORE_URLS=http://+:5009
- ASPNETCORE_ENVIRONMENT=Development
- CONNECTION_STRING=server=mysql; port=3306; database=vibesyncdb; user=root; password=vibesyncpass; Persist Security Info=False; Convert Zero Datetime=True; Allow Zero Datetime=True; Connect Timeout=30;
ports:
- "5009:5009"
depends_on:
mysql:
condition: service_healthy
networks:
- backend_network
networks:
backend_network:
driver: bridge
volumes:
mysql-data: