-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
120 lines (111 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#Only for local testing. Will not be maintained actively.
version: "3"
services:
nextcloud:
build:
context: .
target: development
container_name: nextcloud
image: schulcloud/schulcloud-nextcloud/development
restart: unless-stopped
ports:
- 8081:80
expose:
- 80
environment:
- VIRTUAL_HOST=nextcloud.localhost
env_file:
- .env
volumes:
- nextcloud:/var/www/html
#- ../schulcloud-nextcloud-app:/var/www/html/custom_apps/schulcloud:ro
#- ../NextcloudExtract:/var/www/html/custom_apps/extract:ro
#- ../user_oidc:/var/www/html/custom_apps/user_oidc:ro
depends_on:
- db
- storage
- cache
- antivirus
storage:
image: minio/minio:latest
container_name: storage
restart: unless-stopped
ports:
- 9100:9000
- 9101:9001
environment:
- VIRTUAL_HOST=storage.localhost
- MINIO_ROOT_USER
- MINIO_ROOT_PASSWORD
env_file:
- .env
command: 'server /data --console-address ":9001"'
volumes:
- /var/data/minio:/data
createbuckets:
image: minio/mc
environment:
- MINIO_ROOT_USER
- MINIO_ROOT_PASSWORD
env_file:
- .env
depends_on:
- storage
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://storage:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD;
/usr/bin/mc mb myminio/nextcloud;
/usr/bin/mc policy set public myminio/nextcloud;
exit 0;
"
db:
image: postgres:14
restart: unless-stopped
ports:
- 5433:5432
env_file:
- .env
volumes:
- db:/var/lib/postgresql/data
cap_add:
- SYS_NICE # CAP_SYS_NICE
cache:
container_name: cache
image: redis:alpine
restart: unless-stopped
env_file:
- .env
volumes:
- cache:/data
command: redis-server --requirepass ${REDIS_HOST_PASSWORD}
antivirus:
container_name: antivirus
image: clamav/clamav:stable_base
restart: unless-stopped
ports:
- 3310:3310
volumes:
# Socket
- antivirus:/var/lib/clamav
# nginx here for simulate a ingress like in kubernetes
nginx:
container_name: nginx
image: jwilder/nginx-proxy
restart: always
environment:
- VIRTUAL_HOST=nginx.localhost
ports:
- 9090:80
- 9443:443
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./src/nginx.conf:/etc/nginx/conf.d/my_proxy.conf:ro
volumes:
db:
nextcloud:
storage:
antivirus:
cache:
networks:
default:
name: schulcloudserver_schulcloud-server-network