2019-12-24 04:07:34 +08:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
nginx:
|
|
|
|
image: nginx:latest
|
2019-12-31 03:48:25 +08:00
|
|
|
container_name: nginx
|
2019-12-24 04:07:34 +08:00
|
|
|
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-01-15 18:32:46 +08:00
|
|
|
image: bpatrik/pigallery2:latest-debian-buster # TODO: change it back to latest once relese workflow gets fixed
|
2019-12-24 04:07:34 +08:00
|
|
|
container_name: pigallery2
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
|
|
|
volumes:
|
2020-01-17 18:55:10 +08:00
|
|
|
- "./pigallery2/config:/app/data/config" # CHANGE ME
|
2019-12-24 04:07:34 +08:00
|
|
|
- "db-data:/app/data/db"
|
2022-02-06 23:49:19 +08:00
|
|
|
- "./pigallery2/images:/app/data/images:ro" # CHANGE ME, ':ro' mean read-only
|
2020-01-17 18:55:10 +08:00
|
|
|
- "./pigallery2/tmp:/app/data/tmp" # CHANGE ME
|
2019-12-24 04:07:34 +08:00
|
|
|
expose:
|
|
|
|
- "80"
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db-data:
|