-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
47 lines (42 loc) · 963 Bytes
/
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
version: '3.9'
secrets:
telegram_token:
file: /root/.preaccelerator-token
services:
db:
image: "postgres:14"
environment:
POSTGRES_DB: preaccelerator
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres:/var/lib/postgresql/data/
pgadmin:
image: "dpage/pgadmin4:6.15"
environment:
PGADMIN_DEFAULT_EMAIL: schilyaev.vlad@gmail.com
PGADMIN_DEFAULT_PASSWORD: preaccelerator_default_password
PGADMIN_LISTEN_PORT: 80
ports:
- "15432:80"
volumes:
- pgadmin:/var/lib/pgadmin
depends_on:
- db
app:
build: .
restart: always
depends_on:
- db
secrets:
- telegram_token
environment:
DATABASE_NAME: preaccelerator
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres
DATABASE_SERVER: db
DUMP_USER_ID: 105293829
TOKEN_FILE: /run/secrets/telegram_token
volumes:
postgres:
pgadmin: