-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.03 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
version: '3.6'
services:
db:
image: postgres:latest
restart: always
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=nextcloud!
container_name: db
redis:
image: redis:alpine
command: redis-server --appendonly yes --appendfsync always --save 900 1 --save 300 10 --save 60 1000
volumes:
- redis:/var/lib/postgresql/data
restart: always
container_name: redis
app:
image: nextcloud:fpm
links:
- db
- redis
container_name: nextcloud
volumes:
- nextcloud:/var/www/html
restart: always
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=nextcloud
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=nextcloud!
- REDIS_HOST=redis
depends_on:
- db
- redis
web:
build: ./web
restart: always
container_name: web
ports:
- 9999:80
volumes:
- nextcloud:/var/www/html:ro
depends_on:
- app
volumes:
redis:
db:
nextcloud: