Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computer_science:docker:traefik_docker_https_ssl_for_containers [2020/08/19 09:35] – carlossousa | computer_science:docker:traefik_docker_https_ssl_for_containers [2023/12/01 12:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 24: | Line 24: | ||
chmod 600 " | chmod 600 " | ||
touch " | touch " | ||
- | docker volume create --driver local --opt type=none --opt device=" | ||
Line 69: | Line 68: | ||
* Change the " | * Change the " | ||
* Create a USER: | * Create a USER: | ||
- | * | ||
<code bash> | <code bash> | ||
Line 76: | Line 74: | ||
</ | </ | ||
- | |||
- | * | ||
<code bash> | <code bash> | ||
Line 97: | Line 93: | ||
- / | - / | ||
- / | - / | ||
- | - traefik_data/ | + | - ./ |
- | - traefik_data/ | + | - ./ |
labels: | labels: | ||
- " | - " | ||
Line 116: | Line 112: | ||
proxy: | proxy: | ||
external: true | external: true | ||
+ | " | ||
+ | - " | ||
+ | - " | ||
- | volumes: | + | networks: |
- | | + | |
external: true | external: true | ||
Line 133: | Line 132: | ||
**Before** | **Before** | ||
+ | |||
+ | <code yaml> | ||
+ | version: ' | ||
+ | |||
+ | volumes: | ||
+ | dokuwiki_data: | ||
+ | external: true | ||
+ | dokuwiki_conf: | ||
+ | external: true | ||
+ | dokuwiki_lib-plugins: | ||
+ | external: true | ||
+ | dokuwiki_lib-tpl: | ||
+ | external: true | ||
+ | dokuwiki_logs: | ||
+ | external: true | ||
+ | |||
+ | services: | ||
+ | dokuwiki: | ||
+ | image: ' | ||
+ | container_name: | ||
+ | ports: | ||
+ | - ' | ||
+ | volumes: | ||
+ | - dokuwiki_data:/ | ||
+ | - dokuwiki_conf:/ | ||
+ | - dokuwiki_lib-plugins:/ | ||
+ | - dokuwiki_lib-tpl:/ | ||
+ | - dokuwiki_logs:/ | ||
+ | |||
+ | |||
+ | </ | ||
**After** | **After** | ||
+ | |||
+ | * You can uncomment the " | ||
+ | * Add the " | ||
+ | * Don't forget to change the " | ||
+ | * Don't forget to change the " | ||
+ | * For complex services (for example Wordpress + MySQL), add an extra network, for eg. " | ||
+ | |||
+ | <code yaml> | ||
+ | version: ' | ||
+ | |||
+ | volumes: | ||
+ | dokuwiki_data: | ||
+ | external: true | ||
+ | dokuwiki_conf: | ||
+ | external: true | ||
+ | dokuwiki_lib-plugins: | ||
+ | external: true | ||
+ | dokuwiki_lib-tpl: | ||
+ | external: true | ||
+ | dokuwiki_logs: | ||
+ | external: true | ||
+ | |||
+ | services: | ||
+ | dokuwiki: | ||
+ | image: ' | ||
+ | container_name: | ||
+ | restart: unless-stopped | ||
+ | networks: | ||
+ | - proxy | ||
+ | #ports: | ||
+ | # - ' | ||
+ | volumes: | ||
+ | - dokuwiki_data:/ | ||
+ | - dokuwiki_conf:/ | ||
+ | - dokuwiki_lib-plugins:/ | ||
+ | - dokuwiki_lib-tpl:/ | ||
+ | - dokuwiki_logs:/ | ||
+ | labels: | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | |||
+ | networks: | ||
+ | | ||
+ | | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | After starting the service, it should now be available. | ||