33 lines
843 B
YAML
33 lines
843 B
YAML
|
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
|
||
|
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
|