-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
executable file
·89 lines (87 loc) · 1.7 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
services:
db:
image: postgres:latest
restart: always
user: "$PGUSER"
volumes:
- ./container/postgres:/var/lib/postgresql/data
env_file:
- ./.env
ports:
- "$POSTGRES_PORT:$POSTGRES_PORT"
expose:
- $POSTGRES_PORT
networks:
- kreacher
cache:
image: redis:latest
restart: always
volumes:
- ./container/redis:/data
env_file:
- ./.env
command: redis-server --port $REDIS_PORT --loglevel warning --requirepass $REDIS_PASSWORD
ports:
- "$REDIS_PORT:$REDIS_PORT"
expose:
- $REDIS_PORT
networks:
- kreacher
pgadmin:
image: dpage/pgadmin4
restart: always
volumes:
- pgadmin:/var/lib/pgadmin
env_file:
- ./.env
depends_on:
- db
ports:
- "6060:80"
expose:
- 6060
networks:
- kreacher
telegram-bot-api:
container_name: telegram-bot-api
image: megurobot/telegram-bot-api:latest
restart: unless-stopped
environment:
USER_GID: 1000
USER_UID: 1000
TELEGRAM_API_ID: ${API_ID}
TELEGRAM_API_HASH: ${API_HASH}
TELEGRAM_STAT: true
TELEGRAM_LOCAL: true
env_file:
- .env
volumes:
- ./container/telegram-bot-api:/var/lib/telegram-bot-api
networks:
telegram-bot-api:
ports:
- "8081:8081"
- "8082:8082"
app:
build: .
restart: always
depends_on:
- db
- cache
networks:
- kreacher
networks:
kreacher:
driver: bridge
telegram-bot-api:
name: telegram-bot-api
volumes:
postgres:
driver: local
redis:
driver: local
pgadmin:
driver: local
telegram-bot-api:
name: telegram-bot-api
external: true