-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 1.04 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
version: "2"
services:
api:
build:
context: .
dockerfile: API.Dockerfile
restart: always
depends_on: ["database", "redis"]
links: ["database", "redis"]
environment:
DB_URI: postgres://root:password@database:5432/raptor
REDIS_URI: redis://redis:6379
env_file: .env
ports:
- 5577:5577
bot:
build:
context: .
dockerfile: Bot.Dockerfile
restart: always
depends_on: ["api"]
links: ["api"]
environment:
API_LOCATION: api
API_SCHEME: http
API_PORT: "5577"
REDIS_URI: redis://redis:6379
env_file: .env
volumes:
- ./configs:/configs
database:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: root
POSTGRES_DB: raptor
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./pg_data:/var/lib/postgresql/data
ports:
- 54321:5432 # Used for local debugging. Do not open this port on the firewall.
redis:
image: redis
restart: always