-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
72 lines (67 loc) · 1.38 KB
/
docker-compose.yaml
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
version: "3.8"
services:
web:
container_name: webapp
build: .
depends_on:
db:
condition: service_healthy
environment:
GIN_MODE: release
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
SECRET: ${SECRET}
ADMIN_EMAIL: ${ADMIN_EMAIL}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
ports:
- "80:80"
- "443:443"
networks:
- bridge
restart: always
cap_add:
- NET_RAW
volumes:
- cache:/cache
db:
container_name: postgres
image: docker.io/postgres:alpine
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: aikido-db
expose:
- "5432"
networks:
- bridge
restart: always
healthcheck:
test: pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB
interval: 10s
timeout: 5s
retries: 5
cap_add:
- NET_RAW
volumes:
- postgres:/var/lib/postgresql/data
bot:
container_name: bot
build: bot
depends_on:
- web
environment:
ADMIN_EMAIL: ${ADMIN_EMAIL}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
VK_TOKEN: ${VK_TOKEN}
VK_GROUPID: ${VK_GROUPID}
TG_TOKEN: ${TG_TOKEN}
TG_CHATID: ${TG_CHATID}
restart: always
cap_add:
- NET_RAW
networks:
bridge:
driver: bridge
volumes:
postgres:
cache: