-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
44 lines (44 loc) · 1.02 KB
/
docker-compose.yaml
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
version: '3'
services:
mysql:
restart: always
image: mysql:latest
volumes:
- ./mysql:/var/lib/mysql
environment:
- "MYSQL_HOST=127.0.0.1:3306"
- "MYSQL_ROOT_PASSWORD=123456"
- "MYSQL_DATABASE=homePage"
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 5s
start_period: 5s
interval: 5s
retries: 10
backend:
build: ./backend
depends_on:
mysql:
condition: service_healthy
environment:
- "RUN_MODE=${BACKEND_RUN_MODE:-prod}"
- "DB_USER=root"
- "DB_PASSWORD=123456"
- "DB_HOST=mysql:3306"
- "DB_NAME=homePage"
command: "/usr/local/bin/backend"
waste_land_web:
restart: always
image: peterlitszo/waste_land_web:0.1.0
volumes:
- ./waste_land_web/data/:/app/.waste_web_data/
frontend:
build: ./frontend
caddy:
image: caddy
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- ./caddy/data:/data
ports:
- 80:80
- 8001:8001