-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
159 lines (148 loc) · 3.13 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
version: '3.8'
networks:
webeye:
external: true
services:
postgres-api:
image: postgres:14
restart: always
volumes:
- pgdata-api:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_API_USER}
POSTGRES_PASSWORD: ${POSTGRES_API_PASSWORD}
POSTGRES_DB: 'api_db'
networks:
- webeye
postgres-bot:
image: postgres:14
restart: always
volumes:
- pgdata-bot:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_BOT_USER}
POSTGRES_PASSWORD: ${POSTGRES_BOT_PASSWORD}
POSTGRES_DB: 'bot_db'
networks:
- webeye
redis:
image: redis
restart: always
networks:
- webeye
api:
build:
context: backend
dockerfile: Dockerfile
restart: always
environment:
SECRET_KEY: ${SECRET_KEY}
DEBUG: ${DEBUG}
DB_NAME: 'api_db'
DB_USER: ${POSTGRES_API_USER}
DB_PASS: ${POSTGRES_API_PASSWORD}
DB_HOST: postgres-api
DB_PORT: 5432
REDIS_HOST: redis
REDIS_PORT: 6379
ROOT_ADMIN_EMAIL: ${ROOT_ADMIN_EMAIL}
ROOT_ADMIN_PASSWORD: ${ROOT_ADMIN_PASSWORD}
depends_on:
- postgres-api
- redis
links:
- postgres-api
- redis
networks:
- webeye
checker:
build:
context: checker
dockerfile: Dockerfile
restart: always
environment:
API_HOST: "http://api"
API_PORT: 8000
API_LOGIN: ${ROOT_ADMIN_EMAIL}
API_PASSWORD: ${ROOT_ADMIN_PASSWORD}
depends_on:
- api
links:
- api
networks:
- webeye
postman:
build:
context: postman
dockerfile: Dockerfile
restart: always
environment:
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT:-465}
SMTP_USERNAME: ${SMTP_USERNAME}
SMTP_PASSWORD: ${SMTP_PASSWORD}
REDIS_HOST: redis
REDIS_PORT: 6379
links:
- redis
networks:
- webeye
frontend:
build:
context: frontend
dockerfile: Dockerfile
args:
REACT_APP_API_HOST: ${API_HOST}
REACT_APP_API_PORT: ${API_PORT}
REACT_APP_BOT_LINK: ${BOT_LINK}
restart: always
depends_on:
- api
links:
- api
networks:
- webeye
bot:
build:
context: bot
dockerfile: Dockerfile
restart: always
environment:
TOKEN: ${BOT_TOKEN}
ADMIN_ID: ${BOT_ADMIN_ID}
DB_PROTOCOL: postgres
DB_USERNAME: ${POSTGRES_BOT_USER}
DB_PASSWORD: ${POSTGRES_BOT_PASSWORD}
DB_HOST: postgres-bot
DB_NAME: bot_db
DB_PORT: 5432
REDIS_HOST: redis
REDIS_PORT: 6379
API_HOST: ${API_HOST}
API_PORT: ${API_PORT}
URL: ${URL}
depends_on:
- api
links:
- api
- redis
- postgres-bot
networks:
- webeye
pgadmin:
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${ROOT_ADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${ROOT_ADMIN_PASSWORD}
depends_on:
- postgres-api
- postgres-bot
links:
- postgres-api
- postgres-bot
networks:
- webeye
volumes:
pgdata-api:
pgdata-bot: