-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (47 loc) · 1.24 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
services:
adribot_db:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: adribot_db
environment:
MSSQL_SA_PASSWORD_FILE: /run/secrets/db_password
ACCEPT_EULA: "Y"
ports:
- "1433:1433"
secrets:
- db_password
healthcheck:
test: ["CMD-SHELL", "/opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P $(cat /run/secrets/db_password) -Q 'SELECT 1' -C"]
interval: 10s
timeout: 5s
retries: 10
start_period: 20s
bot:
container_name: adribot_backend
depends_on:
adribot_db:
condition: service_healthy
environment:
DISCORD_EMBED_COLOUR: "FF191970"
DEV_ID: 135081249017430016
DB_CONNECTION: /run/secrets/db_connection
CAT_TOKEN: /run/secrets/cat_token
BOT_TOKEN: /run/secrets/bot_token
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: false
volumes:
- ./Adribot.App:/Adribot
build:
context: ./Adribot.App
dockerfile: Dockerfile
secrets:
- db_connection
- cat_token
- bot_token
secrets:
db_password:
file: ./Secrets/db_password.txt
db_connection:
file: ./Secrets/db_connection.txt
cat_token:
file: ./Secrets/cat_token.txt
bot_token:
file: ./Secrets/bot_token.txt