-
-
Save flavorgold1/841ffdb489519b1ab1d2e6d340f5ee68 to your computer and use it in GitHub Desktop.
nextcloud_postgresql_latest_15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
nextcloud_db: | |
container_name: nextcloud_db | |
image: postgres:latest | |
user: 1000:1000 | |
network_mode: host | |
volumes: | |
- /home/username/docker_stack/nextcloud/nextcloud_db:/var/lib/postgresql/data | |
- /home/username/docker_stack/nextcloud/nextcloud_db_scripts:/docker-entrypoint-initdb.d:ro | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- TZ=Etc/GMT | |
- POSTGRES_DB=nextcloud_db | |
- POSTGRES_USER=username_here | |
- POSTGRES_PASSWORD=password_here | |
- PGPORT=13347 | |
restart: unless-stopped | |
nextcloud_app: | |
container_name: nextcloud_app | |
image: nextcloud:latest | |
user: 1000:1000 | |
network_mode: host | |
volumes: | |
- /home/username/Documents/nextcloud_data:/var/www/html | |
- /home/username/docker_stack/nextcloud/port_modification/ports.conf:/etc/apache2/ports.conf:ro | |
- /home/username/docker_stack/nextcloud/port_modification/000-default.conf:/etc/apache2/sites-enabled/000-default.conf:ro | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- TZ=Etc/GMT | |
- NEXTCLOUD_TRUSTED_DOMAINS='https://nextcloud.mydomain.com' | |
- POSTGRES_DB=nextcloud_db | |
- POSTGRES_USER=username_here | |
- POSTGRES_PASSWORD=password_here | |
- POSTGRES_HOST=127.0.0.1:13347 | |
depends_on: | |
- nextcloud_db | |
restart: unless-stopped |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I placed a script in that .../nextcloud_db_scripts:/docker-entrypoint-initdb.d:ro folder/volume.
Here it is: