-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·74 lines (67 loc) · 1.61 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
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3.8'
services:
postgres:
image: postgres:latest
container_name: app_postgres
environment:
POSTGRES_USER: ${USER_DB}
POSTGRES_PASSWORD: ${PASWOR_DB}
POSTGRES_DB: my_database
ports:
- "127.0.0.1:5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- db-network
bot:
build:
context: .
dockerfile: Dockerfile.bot
# dockerfile: Dockerfile
container_name: telegram_bot
environment:
POSTGRES_HOST: postgres
POSTGRES_USER: ${USER_DB}
POSTGRES_PASSWORD: ${PASWOR_DB}
POSTGRES_DB: my_database
depends_on:
- postgres
networks:
- db-network
list:
build:
context: .
dockerfile: Dockerfile.list
container_name: parser_list
environment:
POSTGRES_HOST: postgres
POSTGRES_USER: ${USER_DB}
POSTGRES_PASSWORD: ${PASWOR_DB}
POSTGRES_DB: my_database
depends_on:
- postgres
networks:
- db-network
ports:
- "8080:80" # Публикация порта 80 контейнера на порт 8080 хоста
object:
build:
context: .
dockerfile: Dockerfile.object
container_name: parser_object
environment:
POSTGRES_HOST: postgres
POSTGRES_USER: ${USER_DB}
POSTGRES_PASSWORD: ${PASWOR_DB}
POSTGRES_DB: my_database
depends_on:
- postgres
networks:
- db-network
ports:
- "8081:80" # Публикация порта 80 контейнера на порт 8081 хоста
volumes:
postgres_data:
networks:
db-network:
driver: bridge