-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
53 lines (49 loc) · 1021 Bytes
/
docker-compose.prod.yml
File metadata and controls
53 lines (49 loc) · 1021 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
services:
parser-sber:
build:
context: ./lizing-parser-sber
container_name: lizing-parser-sber
depends_on:
- db
restart: no
env_file:
- .env.prod
volumes:
- ./lizing-parser-sber/logs:/src/logs
- ./lizing-parser-sber/screenshots:/src/screenshots
- ./lizing-parser-sber/pages:/src/pages
parser-vtb:
build:
context: ./lizing-parser-vtb
container_name: lizing-parser-vtb
depends_on:
- db
restart: no
env_file:
- .env.prod
migrations:
build:
context: ./migrations
container_name: lizing-migrations
depends_on:
- db
restart: no
env_file:
- .env.prod
command: >
/bin/sh -c "
alembic revision --autogenerate &&
alembic upgrade head
"
db:
image: postgres:16
container_name: lizing-db
volumes:
- pgdata:/var/lib/postgresql/data
env_file:
- .env.prod
ports:
- "5001:5432"
restart: unless-stopped
volumes:
pgdata: