-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 851 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (38 loc) · 851 Bytes
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
services:
frontend:
build: frontend
container_name: starstream_frontend
ports:
- "8080:8080"
depends_on:
- backend
backend:
build: backend
container_name: starstream_backend
volumes:
- backend-uploads:/uploads/
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
db:
image: mysql
container_name: starstream_db
command: '--default-authentication-plugin=mysql_native_password'
volumes:
- db-data:/var/lib/mysql
environment:
- MYSQL_DATABASE=starstream_db
- MYSQL_ROOT_PASSWORD=starstreampw
expose:
- 3306
restart: always
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"]
interval: 3s
retries: 5
start_period: 30s
volumes:
db-data:
backend-uploads: