-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (61 loc) · 1.51 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
version: '3.8'
services:
bot:
env_file:
.env
environment:
TOKEN_DEBUG: ${TOKEN_DEBUG}
TOKEN_PROD: ${TOKEN_PROD}
DB_URL: ${DB_URL}
TENOR_API_KEY: ${TENOR_API_KEY}
OSU_API_KEY: ${OSU_API_KEY}
SAUCENAO_API_KEY: ${SAUCENAO_API_KEY}
IMGUR_ID: ${IMGUR_ID}
IMGUR_CLIENT: ${IMGUR_CLIENT}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
ADMIN_IP: ${ADMIN_IP}
build:
context: ./
dockerfile: Dockerfile
network_mode:
"host"
stdin_open: true
tty: true
depends_on:
- postgres
postgres:
image: postgres:15
env_file:
.env
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}
ports:
- 5432:5432
volumes:
- beako_data:/var/lib/postgresql/data
networks:
- bot
pgadmin:
image: dpage/pgadmin4
env_file:
.env
environment:
PGADMIN_DEFAULT_EMAIL: ${PG_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PG_PASS}
PGADMIN_LISTEN_PORT: 80
ports:
- 15432:80
volumes:
- pgadmin:/var/lib/pgadmin
depends_on:
- postgres
volumes:
beako_data:
postgres:
pgadmin:
networks:
bot:
external: false