Advertisement
gadgeteerza

Piwigo docker-compose

Oct 20th, 2022 (edited)
482
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.84 KB | Source Code | 0 0
  1. ---
  2. version: "2.1"
  3. services:
  4.   piwigo:
  5.     image: lscr.io/linuxserver/piwigo
  6.     container_name: piwigo
  7.     hostname: piwigo
  8.     environment:
  9.      - PUID=1000
  10.       - PGID=1000
  11.       - TZ=Africa/Johannesburg
  12.     labels:
  13.       com.centurylinklabs.watchtower.enable: true
  14.     volumes:
  15.      - piwigoappdata:/config
  16.       - piwigogallery:/gallery
  17.     # Uncomment ports if using IP:port addressing - https://www.youtube.com/watch?v=DZRG2sezIl4
  18.     #ports:
  19.     #  - 8090:80
  20.     networks:
  21.      - mysql-net
  22.     restart: unless-stopped
  23.  
  24. volumes:
  25.   piwigoappdata:
  26.     name: piwigoappdata
  27.   piwigogallery:
  28.     name: piwigogallery
  29.  
  30. networks:
  31.   mysql-net:
  32.    # Joins existing network of this name - https://www.youtube.com/watch?v=NdwB5TPXCnQ
  33.     external: true
  34.     # Specify name so that it does not append stack name
  35.     name: mysql-net
  36.  
Tags: piwigo
Advertisement
Comments
  • gadgeteerza
    2 years
    Comment was deleted
  • gadgeteerza
    2 years
    # text 0.71 KB | 0 0
    1. This docker-compose.yaml was used to spin up a Stack in Portainer for my Piwigo hosting on a VPS server. Note though you MUST have first created an empty database before you start up Piwigo, as you need to specify the database connection details on Piwigo's first run.
    2.  
    3. If you're using a shared container database like I have, where I had called that container db, then the host name you'd type into Piwigo will just be db (no IP address or port number). I used phpMyAdmin to create an empty database in my db shared container, and called it piwigo. Make a note too of the database username and user password that has access to the piwigo database you created, as those details must also be typed in on Piwigo's first run.
Add Comment
Please, Sign In to add comment
Advertisement