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:
parent
e1a7fda3ea
commit
1b43fb47f7
@ -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
|
Download [docker-compose/default/docker-compose.yml](docker-compose/default/docker-compose.yml) and
|
||||||
[docker-compose/default/nginx.conf](docker-compose/default/nginx.conf).
|
[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 `docker-compose.yml` at the `# CHANGE ME` lines to point the volumes to the right `image` and `tmp` directories.
|
||||||
Edit `nginx.conf` by replacing `yourdomain.com` to you domain address.
|
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).
|
**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).
|
||||||
|
|
||||||
|
@ -19,10 +19,10 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
volumes:
|
volumes:
|
||||||
- "./pigallery2/config:/app/data/config"
|
- "./pigallery2/config:/app/data/config" # CHANGE ME
|
||||||
- "db-data:/app/data/db"
|
- "db-data:/app/data/db"
|
||||||
- "./pigallery2/images:/app/data/images"
|
- "./pigallery2/images:/app/data/images" # CHANGE ME
|
||||||
- "./pigallery2/tmp:/app/data/tmp"
|
- "./pigallery2/tmp:/app/data/tmp" # CHANGE ME
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -46,12 +46,12 @@ http {
|
|||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
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;
|
return 301 https://$server_name$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
server_name yourdomain.com;
|
server_name yourdomain.com; # CHANGE ME
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
|
|
||||||
@ -69,8 +69,8 @@ http {
|
|||||||
listen 443 ssl default_server;
|
listen 443 ssl default_server;
|
||||||
listen [::]:443 ssl default_server;
|
listen [::]:443 ssl default_server;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem; # CHANGE ME
|
||||||
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem; # CHANGE ME
|
||||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,10 +6,10 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
volumes:
|
volumes:
|
||||||
- "./pigallery2/config:/app/data/config"
|
- "./pigallery2/config:/app/data/config" # CHANGE ME
|
||||||
- "db-data:/app/data/db"
|
- "db-data:/app/data/db"
|
||||||
- "./pigallery2/images:/app/data/images"
|
- "./pigallery2/images:/app/data/images" # CHANGE ME
|
||||||
- "./pigallery2/tmp:/app/data/tmp"
|
- "./pigallery2/tmp:/app/data/tmp" # CHANGE ME
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -31,10 +31,10 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
volumes:
|
volumes:
|
||||||
- ./pigallery2/config:/app/data/config
|
- "./pigallery2/config:/app/data/config" # CHANGE ME
|
||||||
- db-data:/app/data/db
|
- "db-data:/app/data/db"
|
||||||
- ./pigallery2/images:/app/data/images
|
- "./pigallery2/images:/app/data/images" # CHANGE ME
|
||||||
- ./pigallery2/tmp:/app/data/tmp
|
- "./pigallery2/tmp:/app/data/tmp" # CHANGE ME
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -46,12 +46,12 @@ http {
|
|||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
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;
|
return 301 https://$server_name$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
server_name yourdomain.com;
|
server_name yourdomain.com; # CHANGE ME
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
|
|
||||||
@ -69,8 +69,8 @@ http {
|
|||||||
listen 443 ssl default_server;
|
listen 443 ssl default_server;
|
||||||
listen [::]:443 ssl default_server;
|
listen [::]:443 ssl default_server;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem; # CHANGE ME
|
||||||
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem; # CHANGE ME
|
||||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user