Add docker-compose.yml

This commit is contained in:
Glenn Y. Rolland 2022-04-07 09:36:33 +02:00
parent d1db5f9857
commit f37c9d7414

42
docker-compose.yml Normal file
View file

@ -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:
#