-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (52 loc) · 1.16 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
version: '3'
services:
app:
build: ./forecast_report
image: forecast_report
networks:
- forecast-service-network
env_file:
- .env
depends_on:
db:
condition: service_healthy
volumes:
- ./forecast_report/src:/app
scraper:
build: ./scraper
image: scraper
networks:
- forecast-service-network
env_file:
- .env
depends_on:
db:
condition: service_healthy
volumes:
- ./scraper/src:/app
db:
image: mysql
restart: always
environment:
MYSQL_DATABASE: forecast
MYSQL_ROOT_PASSWORD: invista
MYSQL_USER: invista
MYSQL_PASSWORD: invista
MYSQL_ROOT_HOST: '%'
command: mysqld --default-authentication-plugin=mysql_native_password
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
ports:
- "3306:3306"
networks:
- forecast-service-network
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- forecast-data:/var/lib/mysql
networks:
forecast-service-network:
driver: bridge
volumes:
forecast-data: