2020-03-18 16:45:54 +00:00
|
|
|
services:
|
|
|
|
nc:
|
|
|
|
image: nextcloud:apache
|
|
|
|
environment:
|
|
|
|
- POSTGRES_HOST=db
|
|
|
|
- POSTGRES_PASSWORD=nextcloud
|
|
|
|
- POSTGRES_DB=nextcloud
|
|
|
|
- POSTGRES_USER=nextcloud
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- nc_data:/var/www/html
|
|
|
|
db:
|
|
|
|
image: postgres:alpine
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=nextcloud
|
|
|
|
- POSTGRES_DB=nextcloud
|
|
|
|
- POSTGRES_USER=nextcloud
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- db_data:/var/lib/postgresql/data
|
2021-04-30 20:29:16 +00:00
|
|
|
expose:
|
|
|
|
- 5432
|
2020-03-18 16:45:54 +00:00
|
|
|
volumes:
|
|
|
|
db_data:
|
|
|
|
nc_data:
|