-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (40 loc) · 931 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (40 loc) · 931 Bytes
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
services:
lesson_bot:
container_name: lesson_bot_container
image: lesson_bot_image
build:
context: .
environment:
DB_HOST: bot_db
DB_NAME: dbbot
DB_PORT: 5432
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
BOT_TOKEN: "${BOT_TOKEN}"
depends_on:
- bot_db
bot_db:
container_name: postgres_container
image: postgres:14
volumes:
- postgres_data:/data/postgres
ports:
- "5432:5432"
environment:
PGDATA: /data/postgres
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
profiles:
- "dev"
restart: on-failure
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: lesson_bot
volumes:
- pgadmin_data:/var/lib/pgadmin
ports:
- "5050:80"
volumes:
postgres_data:
pgadmin_data: