-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.docker-compose.yml
More file actions
48 lines (48 loc) · 960 Bytes
/
example.docker-compose.yml
File metadata and controls
48 lines (48 loc) · 960 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
46
47
48
name: reaper
services:
bot:
build:
context: .
restart: unless-stopped
networks:
- database
environment:
- DISCORD_TOKEN=[TOKEN]
- DB_USER=[USERNAME]
- DB_PASSWORD=[PASSWORD]
- DB_HOST=database
- DB_NAME=[NAME]
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=[PASSWORD]
depends_on:
- database
database:
image: postgres:15.3
restart: unless-stopped
networks:
- database
environment:
- POSTGRES_USER=[USERNAME]
- POSTGRES_PASSWORD=[PASSWORD]
ports:
- 5432:5432
volumes:
- database:/var/lib/postgresql/data
redis:
image: redis:6.2.5
restart: unless-stopped
command: redis-server --save 20 1 --requirepass [PASSWORD]
networks:
- database
ports:
- 6379:6379
volumes:
- redis:/data
networks:
database: {}
volumes:
database:
driver: local
redis:
driver: local