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
104 lines (99 loc) · 2.99 KB
/
docker-compose.yml
File metadata and controls
104 lines (99 loc) · 2.99 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
version: "3"
networks:
default:
external:
name: gateway
database:
driver: bridge
internal: true
services:
api:
restart: on-failure
image: southclaws/openmp-web
environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/prisma?schema=public
LOG_LEVEL: debug
ports:
- 8080:80
networks:
- default
- database
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"
postgres:
image: postgres
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ${DATA_DIR}/openmp-index/postgres:/var/lib/postgresql/data
networks:
- database
minio:
image: minio/minio
command: server /data
restart: always
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
ports:
- 8082:9000
volumes:
- ${DATA_DIR}/openmp-index/minio:/data
networks:
- default
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
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
volumes:
- ${DATA_DIR}/openmp-index/prometheus:/prometheus
- ./prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- default
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"
pgadmin:
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
ports:
- 8081:80
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"
networks:
- default
- database