forked from openmultiplayer/web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
154 lines (145 loc) · 5.01 KB
/
docker-compose.yml
File metadata and controls
154 lines (145 loc) · 5.01 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: "3"
networks:
default:
name: gateway
external: true
services:
api:
restart: on-failure
image: southclaws/openmp-web
environment:
DATABASE_URL: ${DATABASE_URL}
DEV_LOGIN_SECRET: ${DEV_LOGIN_SECRET}
PRODUCTION: "true"
LOG_LEVEL: debug
AMQP_ADDRESS: ${AMQP_ADDRESS}
HASH_KEY: ${HASH_KEY}
BLOCK_KEY: ${BLOCK_KEY}
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
DISCORD_CLIENT_ID: ${DISCORD_CLIENT_ID}
DISCORD_CLIENT_SECRET: ${DISCORD_CLIENT_SECRET}
SENDGRID_API_KEY: ${SENDGRID_API_KEY}
GITHUB_TOKEN: ${GITHUB_TOKEN}
PACKAGES_DB: /data/packages.db
ports:
- 8000:8000
volumes:
- ${DATA_DIR}/openmp/backend:/data
depends_on:
- postgres
labels:
traefik.enable: "true"
traefik.docker.network: gateway
traefik.http.routers.omp_api.rule: Host(`api.open.mp`)
traefik.http.routers.omp_api.entrypoints: https
traefik.http.routers.omp_api.tls.certresolver: default
com.centurylinklabs.watchtower.enable: "true"
frontend:
restart: on-failure
image: southclaws/openmp-frontend
ports:
- 3000:3000
labels:
traefik.enable: "true"
traefik.docker.network: gateway
traefik.http.routers.omp_frontend.rule: Host(`open.mp`, `www.open.mp`)
traefik.http.routers.omp_frontend.entrypoints: https
traefik.http.routers.omp_frontend.tls.certresolver: default
traefik.http.middlewares.omp_redirect.redirectregex.regex: "^https://www.open.mp/(.*)"
traefik.http.middlewares.omp_redirect.redirectregex.replacement: "https://open.mp/$${1}"
com.centurylinklabs.watchtower.enable: "true"
postgres:
image: postgres
restart: always
ports:
- "25432:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ${DATA_DIR}/openmp/postgres:/var/lib/postgresql/data
minio:
image: minio/minio
command: server /data --console-address ":9001"
restart: always
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
ports:
- 8082:9000
volumes:
- ${DATA_DIR}/openmp/minio:/data
labels:
traefik.enable: "true"
traefik.docker.network: gateway
traefik.http.routers.omp_index_minio.rule: Host(`assets.open.mp`)
traefik.http.routers.omp_index_minio.entrypoints: https
traefik.http.routers.omp_index_minio.tls.certresolver: default
traefik.http.services.omp_index_minio.loadbalancer.server.port: "9001"
prometheus:
image: prom/prometheus
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.size=10GB
- --web.console.libraries=/usr/share/prometheus/console_libraries
- --web.console.templates=/usr/share/prometheus/consoles
restart: always
ports:
- 9090:9090
volumes:
- ${DATA_DIR}/openmp/prometheus:/prometheus
- ./prometheus.yml:/etc/prometheus/prometheus.yml
labels:
traefik.enable: "true"
traefik.docker.network: gateway
traefik.http.routers.omp_index_prom.rule: Host(`data.open.mp`)
traefik.http.routers.omp_index_prom.entrypoints: https
traefik.http.routers.omp_index_prom.tls.certresolver: default
com.centurylinklabs.watchtower.enable: "true"
rabbit:
image: rabbitmq
restart: always
ports:
- 8001:5672
- 8002:15672
pgadmin:
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
ports:
- 25433:80
volumes:
- ${DATA_DIR:?required}/openmp/pgadmin:/var/lib/pgadmin/storage
labels:
traefik.enable: "true"
traefik.docker.network: gateway
traefik.http.routers.omp_index_pgadmin.rule: Host(`pgadmin.open.mp`)
traefik.http.routers.omp_index_pgadmin.entrypoints: https
traefik.http.routers.omp_index_pgadmin.tls.certresolver: default
com.centurylinklabs.watchtower.enable: "true"
mybb:
image: mybb/mybb:latest
restart: on-failure
volumes:
- ${DATA_DIR:?required}/openmp/mybb:/var/www/html:rw
labels:
- traefik.enable=false
nginx:
image: nginx:mainline
restart: on-failure
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ${DATA_DIR:?required}/openmp/mybb:/var/www/html:ro
labels:
traefik.enable: "true"
traefik.docker.network: gateway
traefik.http.routers.openmp_bs.rule: Host(`burgershot.gg`) || Host(`www.burgershot.gg`)
traefik.http.routers.openmp_bs.entrypoints: https
traefik.http.routers.openmp_bs.tls.certresolver: default
traefik.http.services.openmp_bs.loadbalancer.server.port: "80"
traefik.http.middlewares.openmp_bs.redirectregex.regex: "^https://www.burgershot.gg/(.*)"
traefik.http.middlewares.openmp_bs.redirectregex.replacement: "https://burgershot.gg/$${1}"