-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
148 lines (138 loc) · 3.63 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
143
144
145
146
147
148
version: '3'
services:
nextclouddatabase:
image: mariadb:10.5
container_name: nextcloudDatabase
command: ["--transaction-isolation=READ-COMMITTED", "--binlog-format=ROW"]
volumes:
- nextcloud_database:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=passwd123
- MYSQL_PASSWORD=passwd123
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
restart: unless-stopped
nextcloudredis:
image: redis:alpine
container_name: nextcloudRedis
restart: unless-stopped
command: redis-server --requirepass redispassword
nextcloudapp:
# image: nextcloud:26-fpm-alpine
build:
context: ./26/fpm
dockerfile: Dockerfile
container_name: nextcloudApp
links:
- nextclouddatabase
- nextcloudredis
ports:
- 8080:80
volumes:
- nextcloud_app:/var/www/html:rw
# - ./website1:/var/www/html:rw
- /media/szymon/data1/nc26data:/var/www/html/data:rw
# - ./config/config.php:/var/www/html/config/config.php:rw
- type: tmpfs
target: /tmp:exec
environment:
- MYSQL_PASSWORD=passwd123
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=nextclouddatabase
- REDIS_HOST_PASSWORD=redispassword
- TRUSTED_PROXIES=172.19.0.240 # IP address of nginx-proxy
- NEXTCLOUD_TRUSTED_DOMAINS=localhost dysk.paczos.org
- APPIMAGE_EXTRACT_AND_RUN=1
depends_on:
- nextclouddatabase
- nextcloudredis
restart: unless-stopped
nextcloudweb:
container_name: nextcloudWeb
build:
context: ./web
restart: unless-stopped
ports:
- "81:80"
volumes:
- nextcloud_app:/var/www/html:rw
# - ./website1:/var/www/html:rw
# - /var/log/nginx/error.log LOGS
# - ./nginx/:/etc/nginx:rw
environment:
- NGINX_PORT=80
# - LETSENCRYPT_HOST=
# - LETSENCRYPT_EMAIL=
networks:
default:
ipv4_address: 172.19.0.23
aliases:
- nextcloudweb
depends_on:
- nextcloudapp
# nextcloudphpmyadmin:
# container_name: nextcloudPHPMyAdmin
# image: phpmyadmin:5
# environment:
# PMA_HOST: "nextclouddatabase"
# MYSQL_ROOT_PASSWORD: "passwd123"
# ports:
# - '8081:80'
# networks:
# backend:
# ipv4_address: 172.28.0.30
# aliases:
# - phpmyadmin
# restart: unless-stopped
# collabora:
# image: collabora/code
# container_name: collabora
# ports:
# - 9980:9980
# cap_add:
# - MKNOD
# environment:
# - domain=example\\.domain\\.com
# - VIRTUAL_HOST=offices.ydns.eu
# - VIRTUAL_NETWORK=nginx-proxy
# - extra_params=--o:ssl.enable=false --o:ssl.termination=false
# - LETSENCRYPT_HOST=offices.domain.com
# - username=collabora
# - password=collabora
# networks:
# - nextcloud_network
# restart: always
# expose:
# - '80'
# - '443'
nextcloudoffice:
image: collabora/code
container_name: nextcloudoffice
ports:
- 9980:9980
restart: unless-stopped
env_file: ./config/collabora/collabora.env
volumes:
- ./collabora/coolwsd/loolwsd.xml:/etc/loolwsd/loolwsd.xml-new
cap_add:
- MKNOD
environment:
# - domain=office.paczos.org
- 'extra_params=--o:ssl.enable=false --o:ssl.termination=true'
networks:
default:
ipv4_address: 172.19.0.22
aliases:
- nextcloudoffice
volumes:
nextcloud_app:
nextcloud_database:
postgresql_data:
networks:
default:
external:
name: common-network