Initial Commit
This commit is contained in:
61
docker-compose.yml
Normal file
61
docker-compose.yml
Normal file
@@ -0,0 +1,61 @@
|
||||
version: "2"
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres
|
||||
restart: always
|
||||
volumes:
|
||||
- ./data/postgres:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
|
||||
nextcloud:
|
||||
image: nextcloud:fpm
|
||||
restart: always
|
||||
links:
|
||||
- postgres
|
||||
- redis
|
||||
volumes:
|
||||
- ./data/nextcloud:/var/www/html
|
||||
|
||||
nginx:
|
||||
image: nginx
|
||||
restart: always
|
||||
ports:
|
||||
- 127.0.0.1:${NEXTCLOUD_PORT}:80
|
||||
links:
|
||||
- nextcloud
|
||||
volumes:
|
||||
- ./config/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
volumes_from:
|
||||
- nextcloud
|
||||
|
||||
redis:
|
||||
image: redis
|
||||
restart: always
|
||||
volumes:
|
||||
- ./data/redis:/data
|
||||
|
||||
redis-commander:
|
||||
image: rediscommander/redis-commander:latest
|
||||
restart: always
|
||||
links:
|
||||
- redis
|
||||
environment:
|
||||
- REDIS_HOSTS=nextcloud:redis:6379
|
||||
ports:
|
||||
- 127.0.0.1:${REDIS_COMMANDER_PORT}:8081
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4
|
||||
restart: always
|
||||
links:
|
||||
- postgres
|
||||
environment:
|
||||
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
|
||||
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
|
||||
ports:
|
||||
- 127.0.0.1:${PGADMIN_PORT}:80
|
||||
volumes:
|
||||
- ./data/pgadmin:/var/lib/pgadmin
|
||||
Reference in New Issue
Block a user