-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
78 lines (77 loc) · 2.7 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
services:
pgsql:
image: postgres:13-alpine
restart: unless-stopped
volumes:
- ./volumes/postgres/data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${POSTGRES_DB:-nextcloud}
- POSTGRES_USER=${POSTGRES_USER:-nextcloud}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-nextcloud}
ports:
- 127.0.0.1:5432:5432
command: postgres -c log_statement=all
mysql:
image: mysql
volumes:
- ./volumes/mysql/init:/docker-entrypoint-initdb.d
- ./volumes/mysql/data:/var/lib/mysql
ports:
- 127.0.0.1:3306:3306
restart: unless-stopped
environment:
- TZ=${TZ:-CET}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}
- MYSQL_DATABASE=${MYSQL_DATABASE:-nextcloud}
- MYSQL_USER=${MYSQL_USER:-nextcloud}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-nextcloud}
nextcloud:
image: ghcr.io/librecodecoop/nextcloud-dev-php${PHP_VERSION:-82}:latest
# build:
# context: .docker/
# dockerfile: Dockerfile.php${PHP_VERSION:-82}
volumes:
- ./.docker/scripts/wait-for-db.php:/var/www/scripts/wait-for-db.php
- ~/.composer:/var/www/.composer/
- ~/.npm:/var/www/.npm/
- ./volumes/nextcloud:/var/www/html
restart: unless-stopped
environment:
- HOST_UID=${HOST_UID:-1000}
- HOST_GID=${HOST_GID:-1000}
- DEFAULT_PHONE_REGION=${DEFAULT_PHONE_REGION:-UTC}
- NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER:-admin}
- NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD:-admin}
- NEXTCLOUD_ADMIN_EMAIL=${NEXTCLOUD_ADMIN_EMAIL:[email protected]}
- DB_HOST=${DB_HOST:-mysql}
- MYSQL_DATABASE=${MYSQL_DATABASE:-nextcloud}
- MYSQL_USER=${MYSQL_USER:-nextcloud}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-nextcloud}
- POSTGRES_DB=${POSTGRES_DB:-nextcloud}
- POSTGRES_USER=${POSTGRES_USER:-nextcloud}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-nextcloud}
- MAIL_FROM_ADDRESS=${MAIL_FROM_ADDRESS:-nextcloud}
- MAIL_DOMAIN=${MAIL_DOMAIN:-nextcloud.test}
- MAIL_SMTPPORT=${MAIL_SMTPPORT:-1025}
- MAIL_SMTPHOST=${MAIL_SMTPHOST:-mailhog}
- VERSION_NEXTCLOUD=${VERSION_NEXTCLOUD:-master}
- AUTOINSTALL=${AUTOINSTALL:-1}
- XDEBUG_CONFIG
- HTTP_PORT=${HTTP_PORT:-80}
extra_hosts:
- host.docker.internal:host-gateway
nginx:
image: ghcr.io/librecodecoop/nextcloud-dev-nginx:latest
# build: .docker/nginx
restart: unless-stopped
volumes:
- ./volumes/nextcloud:/var/www/html:ro
- ./volumes/nginx/includes:/etc/nginx/conf.d/includes/
ports:
- 127.0.0.1:${HTTP_PORT:-80}:80
mailhog:
image: blueimp/mailhog
ports:
- 127.0.0.1:${MAILHOG_PORT:-8025}:8025
redis:
image: redis