Add docker-compose.yml

master
Glenn Y. Rolland 10 months ago
parent d1db5f9857
commit f37c9d7414

@ -0,0 +1,42 @@
---
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:
#
Loading…
Cancel
Save