26 lines
416 B
YAML
26 lines
416 B
YAML
|
version: '3'
|
||
|
services:
|
||
|
db:
|
||
|
image: postgres
|
||
|
restart: always
|
||
|
volumes:
|
||
|
- db:/var/lib/postgresql/data
|
||
|
env_file:
|
||
|
- nextcloud-db.env
|
||
|
|
||
|
app:
|
||
|
image: nextcloud
|
||
|
ports:
|
||
|
- 8080:80
|
||
|
volumes:
|
||
|
- nextcloud:/var/www/html
|
||
|
restart: always
|
||
|
environment:
|
||
|
- POSTGRES_HOST=db
|
||
|
env_file:
|
||
|
- nextcloud-db.env
|
||
|
depends_on:
|
||
|
- db
|
||
|
volumes:
|
||
|
nextcloud:
|
||
|
db:
|