-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 946 Bytes
/
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
version: '3.7'
services:
db:
image: postgres:15
container_name: db
volumes:
- .:/docker-entrypoint-initdb.d
restart: always
env_file:
- .env-non-dev
app:
build:
context: .
env_file:
- .env-non-dev
container_name: fastapi_app
command: ['/fastapi_app/docker/app.sh']
ports:
- 8000:8000
restart: always
depends_on:
- db
volumes:
- ./scrap_data:/fastapi_app/src/scrap_data
bot:
build:
context: ./mvideo_scrap_bot
env_file:
- .env-non-dev
container_name: mvideo_scrap_bot
restart: always
volumes:
- ./scrap_data:/mvideo_scrap_bot/scrap_data
depends_on:
- db
pars_1_hour:
build:
context: ./scrap_1_hour
env_file:
- .env-non-dev
container_name: scrap_1_hour
restart: always
volumes:
- ./scrap_data:/scrap_1_hour/scrap_data
depends_on:
- db
- app