42 lines
780 B
YAML
42 lines
780 B
YAML
---
|
|
version: "3.4"
|
|
|
|
services:
|
|
db:
|
|
container_name: cloud-db
|
|
image: postgres:14
|
|
volumes:
|
|
- cloud-db-data:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_PASSWORD: cloud-password
|
|
POSTGRES_USER: cloud-user
|
|
POSTGRES_DB: cloud-db
|
|
networks:
|
|
- cloud-net
|
|
|
|
app:
|
|
container_name: cloud-app
|
|
build: .
|
|
image: glenux/nextcloud:23
|
|
volumes:
|
|
- cloud-app-data:/var/www/html
|
|
environment:
|
|
POSTGRES_PASSWORD: cloud-password
|
|
POSTGRES_USER: cloud-user
|
|
POSTGRES_DB: cloud-db
|
|
POSTGRES_HOST: cloud-db
|
|
NEXTCLOUD_ADMIN_USER: admin
|
|
NEXTCLOUD_ADMIN_PASSWORD: "1234"
|
|
networks:
|
|
- cloud-net
|
|
ports:
|
|
- 8080:80
|
|
|
|
volumes:
|
|
cloud-app-data:
|
|
cloud-db-data:
|
|
|
|
networks:
|
|
cloud-net:
|
|
|
|
#
|