Created
June 9, 2019 19:15
-
-
Save mmaridev/39e49010c5464de0cfa84a777c0ba0c5 to your computer and use it in GitHub Desktop.
Nextcloud+Postgres+pgAdmin docker compose
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
version: '3.5' | |
services: | |
postgres: | |
container_name: pg | |
image: postgres | |
environment: | |
POSTGRES_USER: ${POSTGRES_USER:-postgres} | |
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme} | |
PGDATA: /data/postgres | |
volumes: | |
- postgres:/data/postgres | |
ports: | |
- "5432:5432" | |
restart: unless-stopped | |
pgadmin: | |
container_name: pgadmin | |
image: dpage/pgadmin4 | |
environment: | |
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org} | |
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin} | |
volumes: | |
- pgadmin:/root/.pgadmin | |
ports: | |
- "${PGADMIN_PORT:-5050}:80" | |
restart: unless-stopped | |
nextcloud: | |
container_name: nextcloud | |
restart: unless-stopped | |
image: nextcloud | |
ports: | |
- 8080:80 | |
volumes: | |
- nextcloud:/var/www/html | |
depends_on: | |
- postgres | |
volumes: | |
postgres: | |
pgadmin: | |
nextcloud: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment