dokuwiki:docker:setup_using_docker
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dokuwiki:docker:setup_using_docker [2023/02/19 19:28] – admin | dokuwiki:docker:setup_using_docker [2023/07/08 01:42] (current) – admin | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| ```fstab | ```fstab | ||
| - | // | + | // |
| ``` | ``` | ||
| Line 19: | Line 19: | ||
| ```bash | ```bash | ||
| - | sudo mount /home/simar/dokuwiki/dokuwiki/data | + | sudo mount $(pwd)/dokuwiki-data |
| ``` | ``` | ||
| ## Create the container and managing lifecycle via docker | ## Create the container and managing lifecycle via docker | ||
| - | We use an " | + | We use an " |
| ```bash | ```bash | ||
| Line 34: | Line 34: | ||
| -p 50080:80 \ | -p 50080:80 \ | ||
| -p 50443:443 \ | -p 50443:443 \ | ||
| - | -v $(pwd)/ | + | -v $(pwd)/ |
| --restart unless-stopped \ | --restart unless-stopped \ | ||
| lscr.io/ | lscr.io/ | ||
| ``` | ``` | ||
| - | This image stores all configuration in /config and all data in / | + | This image stores all configuration in /config and all data in /data. |
| - | We want to keep config local but mount data from some SMB server. | + | We want to keep config local but mount data from some SMB server. |
| + | |||
| + | ```php | ||
| + | $conf[' | ||
| + | ``` | ||
| For podman we can create such a container but need to mange start/stop with systemnd. | For podman we can create such a container but need to mange start/stop with systemnd. | ||
| Line 88: | Line 92: | ||
| -v "/ | -v "/ | ||
| -p 80:80 -p 443:443 \ | -p 80:80 -p 443:443 \ | ||
| - | certbot/ | + | certbot/ |
| systemctl start httpd | systemctl start httpd | ||
| setenforce 1 | setenforce 1 | ||
| ``` | ``` | ||
dokuwiki/docker/setup_using_docker.1676831291.txt.gz · Last modified: by admin