-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
102 lines (95 loc) · 2.57 KB
/
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
92
93
94
95
96
97
98
99
100
101
102
version: "3"
services:
traefik:
image: traefik
container_name: traefik
restart: always
command:
- "--providers.docker=true"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--providers.docker.exposedbydefault=false"
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock
nginx:
container_name: nginx
build: ./ScheduleBuilder
restart: always
labels:
- traefik.enable=true
- traefik.port=80
- traefik.http.routers.nginx.rule=Host(`claretformun.com`) || Host(`www.claretformun.com`)
- traefik.http.routers.nginx.entrypoints=websecure
- traefik.http.routers.nginx.tls=true
postgres:
image: postgres:alpine
restart: always
environment:
POSTGRES_PASSWORD: admin
POSTGRES_DB: claret
volumes:
- ./postgres-data:/var/lib/postgresql/data
api:
container_name: api
restart: always
build: ./API
depends_on:
- postgres
ports:
- "8080:8080"
environment:
DB_URL: "postgresql://postgres:admin@postgres:5432/claret"
PORT: 8080
TZ: America/St_Johns
labels:
- traefik.enable=true
- traefik.port=8080
- traefik.http.routers.api.rule=Host(`api.claretformun.com`)
- traefik.http.routers.api.entrypoints=websecure
- traefik.http.routers.api.tls=true
scraper:
container_name: scraper
restart: always
build: ./Scraper
depends_on:
- postgres
environment:
DB_URL: "postgresql://postgres:admin@postgres:5432/claret"
WEBHOOK_URL: ${WEBHOOK_URL}
TZ: America/St_Johns
icsserver:
container_name: icsServer
restart: always
build: ./ICSServer
depends_on:
- postgres
ports:
- "8000:8000"
environment:
DB_URL: "postgresql://postgres:admin@postgres:5432/claret"
PORT: 8000
TZ: America/St_Johns
BANNER_TZ: America/St_Johns
labels:
- traefik.enable=true
- traefik.port=8000
- traefik.http.routers.ics.rule=Host(`ics.claretformun.com`)
- traefik.http.routers.ics.entrypoints=websecure
- traefik.http.routers.ics.tls=true
# discordbot:
# container_name: discordBot
# restart: always
# build:
# context: .
# dockerfile: DiscordBot.Dockerfile
# depends_on:
# - postgres
# - claretapi
# environment:
# TOKEN: ${DISCORD_BOT_TOKEN}
# API_URL: https://api.claretformun.com
# GUILD_ID: ${DISCORD_GUILD_ID}
# DB_URL: "postgresql://postgres:admin@postgres:5432/claret"