61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
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 |