Extract Shared NixOS Settings
This commit is contained in:
@@ -1,18 +1,4 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:${PG_VER}-alpine
|
||||
container_name: postgres
|
||||
hostname: postgres
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /opt/data/postgres:/var/lib/postgresql/data
|
||||
environment:
|
||||
TZ: Europe/Moscow
|
||||
POSTGRES_DB: ${DB_NAME}
|
||||
POSTGRES_USER: ${DB_USER}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
ports:
|
||||
- 5432:5432
|
||||
redis:
|
||||
image: redis:alpine
|
||||
container_name: redis
|
||||
@@ -20,6 +6,7 @@ services:
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TZ: Europe/Moscow
|
||||
|
||||
nextcloud:
|
||||
image: nextcloud:${NC_VER}
|
||||
container_name: nextcloud
|
||||
@@ -32,7 +19,6 @@ services:
|
||||
extra_hosts:
|
||||
- ${NC_DOMAIN}:host-gateway
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
volumes:
|
||||
- /opt/configs/nextcloud/app:/var/www/html
|
||||
@@ -45,12 +31,9 @@ services:
|
||||
NEXTCLOUD_OVERWRITEPROTOCOL: https
|
||||
NEXTCLOUD_ADMIN_USER: ${NC_ADMIN_USER}
|
||||
NEXTCLOUD_ADMIN_PASSWORD: ${NC_ADMIN_PASSWORD}
|
||||
POSTGRES_HOST: postgres
|
||||
POSTGRES_DB: ${DB_NAME}
|
||||
POSTGRES_USER: ${DB_USER}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
REDIS_HOST: redis
|
||||
TRUSTED_PROXIES: ${TRUSTED_PROXIES}
|
||||
|
||||
cron:
|
||||
image: nextcloud:${NC_VER}
|
||||
hostname: cron
|
||||
@@ -64,9 +47,6 @@ services:
|
||||
- nextcloud
|
||||
environment:
|
||||
TZ: Europe/Moscow
|
||||
POSTGRES_HOST: postgres
|
||||
POSTGRES_DB: ${DB_NAME}
|
||||
POSTGRES_USER: ${DB_USER}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
REDIS_HOST: redis
|
||||
|
||||
networks: {}
|
||||
|
||||
Reference in New Issue
Block a user