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

adding # CHANGE ME comments to docker-compose.yml and nginx.conf files

This commit is contained in:
Patrik J. Braun 2020-01-17 11:55:10 +01:00
parent e1a7fda3ea
commit 1b43fb47f7
6 changed files with 20 additions and 20 deletions

View File

@ -38,8 +38,8 @@ You can check if it was successful with `docker-compose --version`.
Download [docker-compose/default/docker-compose.yml](docker-compose/default/docker-compose.yml) and
[docker-compose/default/nginx.conf](docker-compose/default/nginx.conf).
Edit `docker-compose.yml` to point the volumes to the right `image` and `tmp` directories.
Edit `nginx.conf` by replacing `yourdomain.com` to you domain address.
Edit `docker-compose.yml` at the `# CHANGE ME` lines to point the volumes to the right `image` and `tmp` directories.
Edit `nginx.conf` at the `# CHANGE ME` lines by replacing `yourdomain.com` to you domain address.
**Note**: Do not change the `image` and the `tmp` path in the `config.json` or in the UI, only through the `volume` settings of the docker. See [here](https://github.com/bpatrik/pigallery2/issues/114#issuecomment-570006336) and [here](https://github.com/bpatrik/pigallery2/issues/119).

View File

@ -19,10 +19,10 @@ services:
environment:
- NODE_ENV=production
volumes:
- "./pigallery2/config:/app/data/config"
- "./pigallery2/config:/app/data/config" # CHANGE ME
- "db-data:/app/data/db"
- "./pigallery2/images:/app/data/images"
- "./pigallery2/tmp:/app/data/tmp"
- "./pigallery2/images:/app/data/images" # CHANGE ME
- "./pigallery2/tmp:/app/data/tmp" # CHANGE ME
expose:
- "80"
restart: always

View File

@ -46,12 +46,12 @@ http {
listen 80 default_server;
listen [::]:80 default_server;
server_name yourdomain.com www.yourdomain.com;
server_name yourdomain.com www.yourdomain.com; # CHANGE ME
return 301 https://$server_name$request_uri;
}
server {
server_name yourdomain.com;
server_name yourdomain.com; # CHANGE ME
gzip on;
@ -69,8 +69,8 @@ http {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem; # CHANGE ME
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem; # CHANGE ME
include /etc/letsencrypt/options-ssl-nginx.conf;
}
}

View File

@ -6,10 +6,10 @@ services:
environment:
- NODE_ENV=production
volumes:
- "./pigallery2/config:/app/data/config"
- "./pigallery2/config:/app/data/config" # CHANGE ME
- "db-data:/app/data/db"
- "./pigallery2/images:/app/data/images"
- "./pigallery2/tmp:/app/data/tmp"
- "./pigallery2/images:/app/data/images" # CHANGE ME
- "./pigallery2/tmp:/app/data/tmp" # CHANGE ME
ports:
- 80:80
restart: always

View File

@ -31,10 +31,10 @@ services:
environment:
- NODE_ENV=production
volumes:
- ./pigallery2/config:/app/data/config
- db-data:/app/data/db
- ./pigallery2/images:/app/data/images
- ./pigallery2/tmp:/app/data/tmp
- "./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

View File

@ -46,12 +46,12 @@ http {
listen 80 default_server;
listen [::]:80 default_server;
server_name yourdomain.com www.yourdomain.com;
server_name yourdomain.com www.yourdomain.com; # CHANGE ME
return 301 https://$server_name$request_uri;
}
server {
server_name yourdomain.com;
server_name yourdomain.com; # CHANGE ME
gzip on;
@ -69,8 +69,8 @@ http {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem; # CHANGE ME
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem; # CHANGE ME
include /etc/letsencrypt/options-ssl-nginx.conf;
}
}