-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
66 lines (63 loc) · 1.42 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
networks:
reverse-proxy:
external: true
name: reverse-proxy
internal:
driver: bridge
services:
app:
build:
context: .docker/app
args:
NEXTCLOUD_VERSION: ${NEXTCLOUD_VERSION:-stable-fpm}
volumes:
- ./volumes/nextcloud:/var/www/html
restart: unless-stopped
environment:
- POSTGRES_DB=${POSTGRES_DB:-nextcloud}
- POSTGRES_USER=${POSTGRES_USER:-nextcloud}
- POSTGRES_PASSWORD
- POSTGRES_HOST=${POSTGRES_HOST:-postgres}
- NEXTCLOUD_ADMIN_USER
- NEXTCLOUD_ADMIN_PASSWORD
- NEXTCLOUD_TRUSTED_DOMAINS
- SMTP_HOST
- SMTP_SECURE
- SMTP_PORT
- SMTP_AUTHTYPE
- SMTP_NAME
- SMTP_PASSWORD
- MAIL_FROM_ADDRESS
- MAIL_DOMAIN
- TZ
networks:
- internal
web:
build: .docker/web
restart: unless-stopped
volumes:
- ./volumes/nextcloud:/var/www/html:ro
- ./volumes/nginx/includes:/etc/nginx/conf.d/includes:rw
environment:
- VIRTUAL_HOST
- LETSENCRYPT_HOST
- LETSENCRYPT_EMAIL
- TZ
depends_on:
- app
networks:
- internal
- reverse-proxy
cron:
build:
context: .docker/app
args:
NEXTCLOUD_VERSION: ${NEXTCLOUD_VERSION:-stable-fpm}
restart: unless-stopped
environment:
- TZ
volumes:
- ./volumes/nextcloud:/var/www/html
networks:
- internal
entrypoint: /cron.sh