Moved nextcloud to single config file

pull/3/head
Jef Roosens 2021-01-09 17:02:38 +01:00
parent 7965403624
commit f95e9f4154
3 changed files with 9 additions and 8 deletions

View File

@ -1,8 +1,8 @@
# Database # Database settings
POSTGRES_HOST=db
POSTGRES_DB=nextcloud POSTGRES_DB=nextcloud
POSTGRES_USER=nextcloud POSTGRES_USER=nextcloud
POSTGRES_PASSWORD=pass POSTGRES_PASSWORD=pass
POSTGRES_HOST=db
# Redis # Redis
REDIS_HOST=redis REDIS_HOST=redis

View File

@ -1,3 +0,0 @@
POSTGRES_DB=nextcloud
POSTGRES_USER=nextcloud
POSTGRES_PASSWORD=pass

View File

@ -9,7 +9,7 @@ services:
- 'db' - 'db'
- 'redis' - 'redis'
env_file: env_file:
- 'nc.env' - '.env'
labels: labels:
- 'com.centurylinklabs.watchtower.enable=true' - 'com.centurylinklabs.watchtower.enable=true'
networks: networks:
@ -27,6 +27,8 @@ services:
depends_on: depends_on:
- 'app' - 'app'
env_file:
- '.env'
labels: labels:
- 'com.centurylinklabs.watchtower.enable=true' - 'com.centurylinklabs.watchtower.enable=true'
volumes: volumes:
@ -38,8 +40,10 @@ services:
image: 'postgres:13-alpine' image: 'postgres:13-alpine'
restart: 'always' restart: 'always'
env_file: environment:
- 'db.env' - 'POSTGRES_DB'
- 'POSTGRES_USER'
- 'POSTGRES_PASSWORD'
labels: labels:
- 'com.centurylinklabs.watchtower.enable=true' - 'com.centurylinklabs.watchtower.enable=true'
volumes: volumes: