2056ab2f01
https://github.com/compose-spec/compose-spec/blob/master/spec.md#version-top-level-element Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
28 lines
550 B
YAML
28 lines
550 B
YAML
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
|
|
expose:
|
|
- 5432
|
|
volumes:
|
|
db_data:
|
|
nc_data:
|