-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (50 loc) · 1.17 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
version: '3.9'
services:
cas-sso-discord-bot:
container_name: CAS-SSO-Discord-Bot
image: bepolytech/ulbdiscordbot:dev-2.0.0-alpha5 # or version like :1.2
#build:
# context: .
# dockerfile: Dockerfile
env_file:
- .env
#volumes:
# - ./:/app
network_mode: host
restart: unless-stopped # or unless-stopped or on-failure
# #! Comment this below if using Google Sheets as a database
# depends_on:
# db:
# condition: service_healthy
#
# #! --- Comment this below if using Google Sheets as a database ---
#
# ## Postgres
# database:
# image: postgres:15-alpine # version ?
# container_name: DB_CAS-SSO-Discord-Bot
# env_file:
# - .env
# volumes:
# - ./db-data:/var/lib/postgresql/data:cached
# expose:
# - "${DB_PORT}" # 5432 ?
# restart: always
# healthcheck:
# test: [ "CMD", "pg_isready" ]
# interval: 10s
# timeout: 5s
# retries: 5
#
# ## MySQL
# database:
# image: mysql:alpine # version ?
# container_name: DB_CAS-SSO-Discord-Bot
# env_file:
# - .env
# volumes:
# - ./db-data:/#?TODO
# expose:
# - "${DB_PORT}" # ?
# restart: always
#