Copy this example, and save it in
/srv/picinch on your server.
version: '3' services: db: image: mariadb:10.4 container_name: gallery_db expose: - 3306 restart: always environment: MYSQL_ROOT_PASSWORD: "<root-password>" MYSQL_DATABASE: picinch MYSQL_USER: server MYSQL_PASSWORD: "<server-password>" volumes: - ./mysql:/var/lib/mysql logging: driver: "json-file" options: max-size: "2m" max-file: "5" gallery: image: inchworks/picinch:0.9 ports: - 443:4000 - 80:8000 restart: always environment: db-password: "<server-password>" domains: "example.com, www.example.com" certificate-email: "email@example.com" session-secret: Hk4TEiDgq8JaCNR?WaPeWBf4QQYNUjMR admin-name: "firstname.lastname@example.org" admin-password: "<your-password>" volumes: - ./certs:/certs - ./photos:/photos - ./site:/site - ./misc:/misc logging: driver: "json-file" options: max-size: "5m" max-file: "5" depends_on: - db
Edit the example to change the following items. (Take care to keep indentation unchanged when editing. Do not use tabs.)
db-passwordMake them the same.
domainsThe domains or sub-domains for your server. They are needed here for certificate registration with Let’s Encrypt.
certificate-emailAn email address that Let’s Encrypt will use to notify you of any problems with certificates.
session-secretA random 32 character key used to encrypt users session data. You could start with the one in this example and change a lot of the individual characters.
admin-nameThe username you will use to log-in to PicInch as administrator. An email address is recommended.
admin-passwordThe administrator password. The admin account is exposed to the internet, so it is important to choose a strong password. A random sequence of at least 12 characters, or at least four random words is recommended.
If you intend to change other PicInch configuration settings, you may prefer to omit the environment settings here, and set them in a site/configuration.yml file instead.
docker-compose up to fetch PicInch and MariaDB from Docker Hub and start them.