Add docker-compose.yml
This commit is contained in:
parent
d1db5f9857
commit
f37c9d7414
1 changed files with 42 additions and 0 deletions
42
docker-compose.yml
Normal file
42
docker-compose.yml
Normal 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:
|
||||
|
||||
#
|
Loading…
Reference in a new issue