2019-12-24 00:17:05 +02:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
pigallery-db:
|
|
|
|
container_name: pigallery-db
|
|
|
|
image: mariadb
|
|
|
|
volumes:
|
|
|
|
- db-data:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=putsomethinginherethatyouwouldlikeasthepassword
|
|
|
|
- MYSQL_USER=pigallery2
|
|
|
|
- MYSQL_PASSWORD=pigallery2_pass
|
|
|
|
- MYSQL_DATABASE=pigallery2
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:latest
|
2019-12-30 21:48:25 +02:00
|
|
|
container_name: nginx
|
2019-12-24 00:17:05 +02: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:
|
2019-12-30 22:39:05 +02:00
|
|
|
image: bpatrik/pigallery2:latest
|
2020-10-28 22:02:15 +02:00
|
|
|
command: sh -c 'bin/wait-for pigallery-db:3306 -- --Server-Database-mysql-host=pigallery-db --Server-Database-mysql-username=pigallery2 --Server-Database-mysql-password=pigallery2_pass --Server-Database-mysql-database=pigallery2'
|
2019-12-24 00:17:05 +02:00
|
|
|
container_name: pigallery2
|
|
|
|
environment:
|
2023-01-05 00:19:14 +02:00
|
|
|
- NODE_ENV=production # set to 'debug' for full debug logging
|
2023-12-03 10:38:29 +02:00
|
|
|
# - NODE_OPTIONS=--enable-source-maps # enable source map support on the backend for development
|
2019-12-24 00:17:05 +02:00
|
|
|
volumes:
|
2020-01-17 12:55:10 +02:00
|
|
|
- "./pigallery2/config:/app/data/config" # CHANGE ME
|
|
|
|
- "db-data:/app/data/db"
|
2023-01-05 00:25:59 +02:00
|
|
|
- "./pigallery2/images:/app/data/images:ro" # CHANGE ME, ':ro' means read-only
|
2020-01-17 12:55:10 +02:00
|
|
|
- "./pigallery2/tmp:/app/data/tmp" # CHANGE ME
|
2019-12-24 00:17:05 +02:00
|
|
|
expose:
|
|
|
|
- "80"
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db-data:
|