-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·71 lines (65 loc) · 1.43 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
version: '3'
services:
db:
container_name: nc_db
image: mariadb:10.5
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true
env_file:
- db.env
redis:
container_name: nc_redis
image: redis:alpine
restart: always
app:
container_name: nc_app
build: ./mediadc
restart: always
volumes:
- nextcloud:/var/www/html
environment:
- REDIS_HOST=redis
- NEXTCLOUD_ADMIN_USER=admin
- NEXTCLOUD_ADMIN_PASSWORD=12345
- NEXTCLOUD_TRUSTED_DOMAINS=192.168.4.18 docker1.dnepr99
env_file:
- db.env
depends_on:
- db
- redis
web:
container_name: nc_web
build: ./web
restart: always
ports:
- 8888:80
- 6443:443
volumes:
- nextcloud:/var/www/html:ro
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
- VIRTUAL_HOST=docker1.dnepr99
depends_on:
- app
networks:
- default
cron:
container_name: nc_cron
image: nextcloud:23.0.0-fpm-alpine
restart: always
volumes:
- nextcloud:/var/www/html
entrypoint: /cron.sh
depends_on:
- db
- redis
volumes:
db:
nextcloud:
certs: