-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·91 lines (85 loc) · 2.56 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "3.8"
services:
db:
image: 'redboard/epitechmoulibot:database'
container_name: 'epitechmoulibot-database'
volumes:
- $PWD/database:/var/lib/mysql
networks:
epitechmoulibotNetwork:
ipv4_address: ${DATABASE_IPV4_ADDRESS}
environment:
MYSQL_DATABASE: 'epitechmoulibot'
MYSQL_USER: ${DATABASE_USER}
MYSQL_PASSWORD: ${DATABASE_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DATABASE_ROOT_PASSWORD}
restart: on-failure
api-database:
image: 'redboard/epitechmoulibot:api-db'
container_name: 'epitechmoulibot-api-db'
networks:
epitechmoulibotNetwork:
ipv4_address: ${API_DB_IPV4_ADDRESS}
environment:
MYSQL_DATABASE: 'epitechmoulibot'
MYSQL_HOST: 'db'
MYSQL_USER: ${DATABASE_USER}
MYSQL_PASSWORD: ${DATABASE_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DATABASE_ROOT_PASSWORD}
HOST_NAME: 'api-database'
SECRET: ${API_SECRET}
OTHER_APP_TOKEN: ${API_DB_TOKEN}
PORT: ${API_DB_PORT}
ports:
- "${API_DB_PORT}:${API_DB_PORT}"
depends_on:
- db
restart: on-failure
relay:
image: 'redboard/epitechmoulibot:my-epitech-relay'
container_name: 'epitechmoulibot-relay'
networks:
epitechmoulibotNetwork:
ipv4_address: ${RELAY_IPV4_ADDRESS}
environment:
API_DB_HOST: 'http://api-database:${API_DB_PORT}'
HOST_NAME: 'relay'
API_DB_TOKEN: ${API_DB_TOKEN}
PORT: ${RELAY_PORT}
BROWSER_BINARY_PATH: ${RELAY_BROWSER_BINARY_PATH}
BROWSER_TYPE: ${RELAY_BROWSER_TYPE}
BROWSER_ARGS: '--no-sandbox'
NO_WINDOW: 1
ports:
- "${RELAY_PORT}:${RELAY_PORT}"
depends_on:
- db
- api-database
restart: on-failure
discord-bot:
image: 'redboard/epitechmoulibot:discord-bot'
container_name: 'epitechmoulibot-discord-bot'
networks:
epitechmoulibotNetwork:
ipv4_address: ${DISCORD_IPV4_ADDRESS}
environment:
API_DB_HOST: 'http://api-database:${API_DB_PORT}'
API_DB_TOKEN: ${API_DB_TOKEN}
DEV_DISCORD_BOT_TOKEN: ${DISCORD_BOT_DEV_TOKEN}
FINAL_DISCORD_BOT_TOKEN: ${DISCORD_BOT_FINAL_TOKEN}
WEBHOOK_URL: ${DISCORD_WEBHOOK_URL}
RELAY_HOST: 'http://my-epitech-relay:${RELAY_PORT}'
depends_on:
- db
- api-database
- relay
restart: on-failure
networks:
epitechmoulibotNetwork:
driver: bridge
ipam:
config:
- subnet: ${SUBNET}
gateway: ${GATEWAY}
volumes:
epitechmoulibot-volume: