-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
52 lines (48 loc) · 982 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
48
49
50
51
52
version: "3.9"
services:
redis:
image: redis:6.2
ports:
- "6379:6379"
restart: unless-stopped
volumes:
- redis-data:/data
networks:
- default
postgres:
image: postgres:13
ports:
- "7777:5432"
restart: unless-stopped
environment:
POSTGRES_USER: twt
POSTGRES_PASSWORD: twt
POSTGRES_DB: twt
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- default
api:
build:
context: .
dockerfile: Dockerfile
ports:
- "5000:5000"
restart: unless-stopped
depends_on:
- postgres
- redis
environment:
SECRET_KEY: "${SECRET_KEY}"
DISCORD_CLIENT_ID: "${DISCORD_CLIENT_ID}"
DISCORD_CLIENT_SECRET: "${DISCORD_CLIENT_SECRET}"
POSTGRES_URI: postgres://twt:twt@postgres:5432/twt
REDIS_URI: redis://redis
networks:
- default
volumes:
postgres-data:
redis-data:
networks:
default:
name: twt