-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
61 lines (60 loc) · 1.2 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
mysql:
image: mysql:8.0
restart: always
env_file:
- ./backend/.env
volumes:
- mysql-volume:/var/lib/mysql
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u root --password=$$MYSQL_PASSWORD
start_period: 5s
interval: 5s
timeout: 5s
retries: 55
backend:
restart: always
build:
context: ./backend
dockerfile: ./Dockerfile
ports:
- "3001:80"
env_file:
- ./backend/.env
volumes:
- backend-images:/backend/photos
depends_on:
mysql:
condition: service_healthy
bot:
restart: always
build:
context: ./backend
dockerfile: ./DockerfileBot
env_file:
- ./backend/.env
depends_on:
mysql:
condition: service_healthy
volumes:
- backend-images:/backend/photos
notifier:
restart: always
build:
context: ./backend
dockerfile: ./DockerfileCronjobs
env_file:
- ./backend/.env
depends_on:
mysql:
condition: service_healthy
frontend:
restart: always
build:
context: ./frontend
dockerfile: ./Dockerfile
ports:
- "3000:80"
volumes:
mysql-volume:
backend-images: