-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
142 lines (134 loc) · 3.18 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
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
version: "3"
services:
########################################################
# Hydra logint-consent-flow provider for Atlassian Crowd
########################################################
crowdprovider:
build: .
entrypoint: node --inspect-brk=0.0.0.0 ./bin/www
container_name: crowdprovider
hostname: crowdprovider
networks:
- ssoauthnet
ports:
- "3000:3000"
- "9229:9229"
env_file:
- .env
environment:
- VIRTUAL_HOST=crowdprovider.ruhmesmeile.machine
- VIRTUAL_PORT=3000
#######################################
# Atlassian Crowd
#######################################
crowd:
image: ruhmesmeile/crowd:3.3.3
container_name: crowd
hostname: crowd
links:
- postgresql
networks:
- ssoauthnet
volumes:
- crowddata:/var/atlassian/crowd
ports:
- "8095:8095"
env_file:
- .env
environment:
- VIRTUAL_HOST=crowd.ruhmesmeile.machine
- VIRTUAL_PORT=8095
#######################################
# Ory Hydra
#######################################
hydra:
image: oryd/hydra:v1.0.0-rc.6_oryOS.10
command: serve all --dangerous-force-http
container_name: hydra
hostname: hydra
links:
- postgresql
networks:
- ssoauthnet
ports:
- 4444
env_file:
- .env
environment:
- VIRTUAL_HOST=hydra.ruhmesmeile.machine
- VIRTUAL_PORT=4444
socat:
image: alpine/socat:1.0.3
command: TCP-LISTEN:4445,fork TCP:hydra:4445
container_name: socat
hostname: socat
networks:
- ssoauthnet
ports:
- 4445
depends_on:
- hydra
environment:
- VIRTUAL_HOST=hydraadmin.ruhmesmeile.machine
- VIRTUAL_PORT=4445
#######################################
# Nextcloud
#######################################
nextcloud:
image: nextcloud:15.0.2
container_name: nextcloud
hostname: nextcloud
links:
- postgresql
networks:
- ssoauthnet
ports:
- "8080:80"
volumes:
- nextclouddata:/var/www/html
environment:
- VIRTUAL_HOST=nextcloud.ruhmesmeile.machine
- VIRTUAL_PORT=80
- POSTGRES_DB=nextclouddb
- POSTGRES_USER=nextclouddb
- POSTGRES_PASSWORD=betatester
- POSTGRES_HOST=postgresql
#######################################
# PostgreSQL
#######################################
postgresql:
image: postgres:9.5.15
container_name: postgresql
hostname: postgresql
networks:
- ssoauthnet
volumes:
- postgresqldata:/var/lib/postgresql/data
- ./resources/sql:/docker-entrypoint-initdb.d
env_file:
- .env
#######################################
# Nginx Reverse Proxy
#######################################
nginx:
image: jwilder/nginx-proxy:0.7.0
container_name: nginx
hostname: nginx
networks:
- ssoauthnet
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./resources/certs:/etc/nginx/certs
volumes:
crowddata:
external: false
postgresqldata:
external: false
nextclouddata:
external: false
networks:
ssoauthnet:
driver: bridge