-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
53 lines (48 loc) · 1 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
version: '3.9'
services:
db:
image: postgres:14
restart: always
volumes:
- db:/var/lib/postgresql/data
networks:
- internal
environment:
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
nextcloud:
image: nextcloud:apache
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- nextcloud:/var/www/html
- apache-config:/etc/apache2
- ${APP_DIR:-./../../custom_apps}:/var/www/html/custom_apps
networks:
- internal
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
depends_on:
- db
cron:
image: nextcloud:apache
restart: always
volumes:
- nextcloud:/var/www/html
- apache-config:/etc/apache2
networks:
- internal
entrypoint: /cron.sh
depends_on:
- db
volumes:
db:
nextcloud:
apache-config:
networks:
internal: