1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/docker/docker-compose/default/docker-compose.yml

32 lines
809 B
YAML
Raw Normal View History

version: '3'
services:
nginx:
image: nginx:latest
2019-12-31 03:48:25 +08:00
container_name: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./nginx/error.log:/etc/nginx/error_log.log
- ./nginx/cache/:/etc/nginx/cache
- /etc/letsencrypt/:/etc/letsencrypt/
ports:
- 80:80
- 443:443
restart: always
pigallery2:
2022-03-13 04:39:22 +08:00
image: bpatrik/pigallery2:latest
container_name: pigallery2
environment:
- NODE_ENV=production # set to 'debug' for full debug logging
volumes:
- "./pigallery2/config:/app/data/config" # CHANGE ME
- "db-data:/app/data/db"
2023-01-05 06:25:59 +08:00
- "./pigallery2/images:/app/data/images:ro" # CHANGE ME, ':ro' means read-only
- "./pigallery2/tmp:/app/data/tmp" # CHANGE ME
expose:
- "80"
restart: always
volumes:
db-data: