-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.dev.yml
61 lines (58 loc) · 1.19 KB
/
docker-compose.dev.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
53
54
55
56
57
58
59
60
61
version: '3.9'
services:
database:
container_name: bot-database
image: postgres:alpine
expose:
- "5432"
ports:
- 5432:5432
volumes:
- ./database/data:/var/lib/postgres/data
environment:
POSTGRES_DB: "bot"
POSTGRES_USER: "root"
POSTGRES_PASSWORD: "root"
deploy:
replicas: 1
placement:
max_replicas_per_node: 2
restart: always
discord-bot-service:
container_name: discord-bot
build:
context: ./
dockerfile: ./bot/Dockerfile
environment:
TOKEN: ""
APPLICATION_ID: ""
GUILD_ID: ""
MAILER_HOST: ""
MAILER_PORT: ""
MAILER_PASS: ""
DATABASE_HOST: ""
DATABASE_PORT: ""
DATABASE_USERNAME: ""
DATABASE_PASSWORD: ""
DATABASE_NAME: ""
MENZA_API: ""
deploy:
replicas: 1
placement:
max_replicas_per_node: 2
restart: always
depends_on:
- database
- menza-service
menza-service:
container_name: menza
build:
context: ./menza
dockerfile: ./Dockerfile
expose:
- "8000"
deploy:
replicas: 1
placement:
max_replicas_per_node: 2
restart: always