-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
68 lines (65 loc) · 1.65 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3'
services:
tsmoveer:
container_name: moveer_ts
restart: unless-stopped
build:
context: .
args:
- NODE_ENV=${NODE_ENV}
- BOT_CLIENT_ID=${BOT_CLIENT_ID}
- BOT_TOKEN=${BOT_TOKEN}
command: node build/sharding.js
environment:
- BOT_TOKEN=${BOT_TOKEN}
- PGHOST=${PGHOST}
- PGPASSWORD=${PGPASSWORD}
- PGUSER=${PGUSER}
- PGDATABASE=${PGDATABASE}
- discordHookToken=${discordHookToken}
- discordHookIdentifier=${discordHookIdentifier}
- rabbitMQConnection=${rabbitMQConnection}
- BOT_CLIENT_ID=${BOT_CLIENT_ID}
- TOP_GG_TOKEN=${TOP_GG_TOKEN}
- NODE_ENV=${NODE_ENV}
depends_on:
- rabbitmq
- postgres
networks:
app_subnet:
ipv4_address: 172.16.1.20
postgres:
image: postgres:14.4-alpine
container_name: postgres
restart: always
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: ${PGPASSWORD}
POSTGRES_USER: ${PGUSER}
POSTGRES_DB: ${PGDATABASE}
TZ: Europe/Stockholm
volumes:
- /opt/dcontainers/postgres:/var/lib/postgresql/data
networks:
app_subnet:
ipv4_address: 172.16.1.50
rabbitmq:
image: rabbitmq:3.10.5-management
hostname: rabbitmq
environment:
- TZ=Europe/Stockholm
container_name: rabbitMq
restart: unless-stopped
ports:
- 15672:15672
- 5672:5672
networks:
app_subnet:
ipv4_address: 172.16.1.51
volumes:
- /opt/dcontainers/rabbitmq:/var/lib/rabbitmq
- /opt/dcontainers/rabbitmq.conf:/etc/rabbitmq/rabbitmq.config
networks:
app_subnet:
external: true