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
Patrik J. Braun 9ea2fc5f21 Revert "upgrading to recommend node v16, making min version to be v14"
This reverts commit b72788456b.

# Conflicts:
#	.github/workflows/build.yml
#	.travis.yml
#	package-lock.json
#	package.json
2022-01-15 11:32:46 +01:00

32 lines
822 B
YAML

version: '3'
services:
nginx:
image: nginx:latest
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:
image: bpatrik/pigallery2:latest-debian-buster # TODO: change it back to latest once relese workflow gets fixed
container_name: pigallery2
environment:
- NODE_ENV=production
volumes:
- "./pigallery2/config:/app/data/config" # CHANGE ME
- "db-data:/app/data/db"
- "./pigallery2/images:/app/data/images" # CHANGE ME
- "./pigallery2/tmp:/app/data/tmp" # CHANGE ME
expose:
- "80"
restart: always
volumes:
db-data: