-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
181 lines (168 loc) · 3.82 KB
/
docker-compose.yaml
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
#
# OpenTHC Full Docker Environment
#
# SPDX-License-Identifier: GPL-3.0-only
#
name: openthc
services:
# @see https://dev.to/kittipat1413/deploying-your-container-with-https-using-traefik-as-a-reverse-proxy-1859
# @see https://www.youtube.com/watch?v=naCHq6sMMI8
traefik:
container_name: hub.openthc.me
image: "traefik:v2.11.0"
command:
- "--api.dashboard=true"
- "--api.insecure=true"
- "--providers.docker=true"
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# The SQL Database Service
sql:
container_name: sql.openthc.me
image: openthc/sql
environment:
- POSTGRES_PASSWORD="passweed"
# volumes:
# - /opt/openthc-docker/sql:/var/lib/postgres/data
# The Redis System
# @see https://github.com/nextcloud/all-in-one/discussions/1731
rdb:
container_name: rdb.openthc.me
image: redis
# Single Sign On Services
sso:
container_name: sso.openthc.me
image: openthc/sso
labels:
- "traefik.http.routers.sso.rule=Host(`sso.openthc.me`)"
depends_on:
- traefik
- sql
- rdb
volumes:
- type: bind
source: ./etc/sso/config.php
target: /opt/openthc/sso/etc/config.php
read_only: true
networks:
default:
aliases:
- sso.openthc.me
expose:
- "80"
# Compliance Reporting Engine
cre:
container_name: cre.openthc.me
image: openthc/cre
labels:
- "traefik.http.routers.cre.rule=Host(`cre.openthc.me`)"
depends_on:
- traefik
- sql
- rdb
volumes:
- type: bind
source: ./etc/cre/config.php
target: /opt/openthc/cre/etc/config.php
read_only: true
# - openthc-gfs
networks:
default:
aliases:
- cre.openthc.me
expose:
- "80"
# PIPE
# pipe:
# container_name: pipe.openthc.me
# image: openthc/pipe
# ports:
# - "42022:80"
# volumes:
# - type: bind
# source: ./etc/config-pipe.php
# target: /opt/openthc/pipe/etc/config.php
# read_only: true
# BONG
# bong:
# container_name: bong.openthc.me
# image: openthc/bong:
# ports:
# - "42024:80"
# volumes:
# - type: bind
# source: ./etc/config-bong.php
# target: /opt/openthc/bong/etc/config.php
# read_only: true
# Main Application / S2S / TNT
app:
container_name: app.openthc.me
image: openthc/app
labels:
- "traefik.http.routers.app.rule=Host(`app.openthc.me`)"
depends_on:
- traefik
- sql
- rdb
volumes:
- type: bind
source: ./etc/app/config.php
target: /opt/openthc/app/etc/config.php
read_only: true
networks:
default:
aliases:
- app.openthc.me
expose:
- "80"
# ports:
# - "42030:80"
# Laboratory Interface
lab:
container_name: lab.openthc.me
image: openthc/lab
labels:
- "traefik.http.routers.lab.rule=Host(`lab.openthc.me`)"
depends_on:
- traefik
- sql
- rdb
volumes:
- type: bind
source: ./etc/lab/config.php
target: /opt/openthc/lab/etc/config.php
read_only: true
networks:
default:
aliases:
- lab.openthc.me
expose:
- "80"
# Point of Sale
pos:
container_name: pos.openthc.me
image: openthc/pos
labels:
- "traefik.http.routers.pos.rule=Host(`pos.openthc.me`)"
depends_on:
- traefik
- sql
- rdb
volumes:
- type: bind
source: ./etc/pos/config.php
target: /opt/openthc/pos/etc/config.php
read_only: true
networks:
default:
aliases:
- pos.openthc.me
expose:
- "80"
volumes:
gfs:
name: openthc-gfs