2024-07-20 00:08:15 +05:00
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: mirror.gcr.io/postgres:16.3-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
shm_size: 128mb
|
|
|
|
volumes:
|
|
|
|
- ./postgres/data:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
|
|
nginx:
|
|
|
|
image: mirror.gcr.io/nginx:1.27.0-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./data:/var/www/html
|
|
|
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
ports:
|
|
|
|
- 8666:80
|
2024-07-21 23:47:31 +05:00
|
|
|
redis:
|
|
|
|
image: mirror.gcr.io/redis:7.2.5-alpine
|
|
|
|
restart: unless-stopped
|
2024-07-20 00:08:15 +05:00
|
|
|
nextcloud:
|
|
|
|
image: mirror.gcr.io/nextcloud:29.0.3-fpm
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./data:/var/www/html
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
|
|
- POSTGRES_HOST=db
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- nginx
|
2024-07-21 23:47:31 +05:00
|
|
|
- redis
|