-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 845 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 845 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
services:
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- TZ=${TZ}
- PGTZ=${TZ}
ports:
- '${POSTGRES_PORT_EXTERNAL}:5432'
restart: unless-stopped
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- bot-network
app:
build:
dockerfile: ./docker/app.dockerfile
restart: unless-stopped
volumes:
- ./storage:/app/storage
networks:
- bot-network
depends_on:
- postgres
user: '${UID}:${GID}'
environment:
- TZ=${TZ}
- BOT_TOKEN=${BOT_TOKEN}
- DEFAULT_LOCALE=${DEFAULT_LOCALE}
- ADMIN_USER_IDS=${ADMIN_USER_IDS}
- DATABASE_URL=${DATABASE_URL}
- LOG_LEVEL=${LOG_LEVEL}
volumes:
pgdata:
networks:
bot-network: