Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.5"
- volumes:
- #nextcloud:
- data:
- db:
- pgadmin:
- #nextcloud-app:
- networks:
- nginx_proxy_frontend:
- # add this if the network is already existing!
- external: true
- nginx_proxy_backend:
- # add this if the network is already existing!
- external: true
- services:
- nextcloud-pgsql-app:
- container_name: nc_pgsql_app
- image: nextcloud:23
- restart: always
- volumes:
- - data:/var/www/html/
- healthcheck:
- test: curl --fail http://localhost || exit 1
- interval: 30s
- retries: 5
- timeout: 10s
- environment:
- POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
- POSTGRES_DATABASE: ${POSTGRES_DATABASE:-nextcloud}
- POSTGRES_USER: ${POSTGRES_USER:-nextcloud}
- POSTGRES_HOST: ${POSTGRES_HOST:-nc_pqsql_db}
- ports:
- - '8088:80'
- networks:
- - nginx_proxy_frontend
- - nginx_proxy_backend
- nextcloud-pgsql-db:
- container_name: nc_pqsql_db
- image: postgres:alpine
- restart: always
- volumes:
- - db:/var/lib/postgresql/data
- environment:
- POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
- POSTGRES_DATABASE: ${POSTGRES_DATABASE:-nextcloud}
- POSTGRES_USER: ${POSTGRES_USER:-nextcloud}
- ports:
- - '5432:5432'
- networks:
- - nginx_proxy_backend
- nextcloud-pqsql-pgadmin:
- container_name: nc_pgadmin
- image: dpage/pgadmin4
- environment:
- PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-admin@pgsql.com}
- PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
- PGADMIN_CONFIG_SERVER_MODE: 'False'
- POSTGRES_HOST: ${POSTGRES_HOST:-nc_pqsql_db}
- volumes:
- - pgadmin:/var/lib/pgadmin
- ports:
- - "${PGADMIN_PORT:-5050}:80"
- networks:
- - nginx_proxy_frontend
- - nginx_proxy_backend
- restart: unless-stopped
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement