Diferència entre revisions de la pàgina «Migració d'una wiki a una altra dockeritzada»
(Es crea la pàgina amb «= 1r docker-compose.yml = ### Based on https://kindalame.com/2020/11/25/self-hosting-mediawiki-with-docker/ ### Docker Compose Example for Kinda Lame ### Created Oc...».) |
m (→1r docker-compose.yml) |
||
Línia 23: | Línia 23: | ||
- 80:80 | - 80:80 | ||
- 443:443 | - 443:443 | ||
− | - 3307:3306 | + | - 3307:3306 # Es connecta amb la base de dades de sota mitjançant el port 3307. Això ens permet posar diferents bases de dades |
links: | links: | ||
- database | - database | ||
Línia 41: | Línia 41: | ||
environment: | environment: | ||
MYSQL_DATABASE: 'wiki_things_cat' | MYSQL_DATABASE: 'wiki_things_cat' | ||
− | + | MYSQL_USER: 'usuari_BD_things' | |
− | MYSQL_USER: ' | ||
# | # | ||
# Generate a secure password and place it in the area below | # Generate a secure password and place it in the area below | ||
# | # | ||
− | MYSQL_PASSWORD: ' | + | MYSQL_PASSWORD: 'contrasenya_BD_things' |
− | MYSQL_ROOT_PASSWORD: ' | + | MYSQL_ROOT_PASSWORD: 'alguna' |
MYSQL_RANDOM_ROOT_PASSWORD: 'no' | MYSQL_RANDOM_ROOT_PASSWORD: 'no' | ||
volumes: | volumes: |
Revisió del 19:02, 23 ago 2021
1r docker-compose.yml
### Based on https://kindalame.com/2020/11/25/self-hosting-mediawiki-with-docker/ ### Docker Compose Example for Kinda Lame ### Created October 2020 ### Modified August 2021 by Jordi Binefa ### version: '3.3' services: web: ### ### We suggest using the LTS, long term support images ### # image: mediawiki:lts image: mediawiki:1.31.3 ports: ### We are running the server behind NGINX which we ### recommend all users doing. And due to the need to ### login to the site we recommend running Certbot ### on your domain and putting the proxy behind ### an SSL certificate to keep your passwords safe! ### ### CHANGE THE PORT BELOW FROM 9999 TO YOUR DESIRED PORT - 80:80 - 443:443 - 3307:3306 # Es connecta amb la base de dades de sota mitjançant el port 3307. Això ens permet posar diferents bases de dades links: - database restart: unless-stopped volumes: - /home/jordi/bin/wikis/things_cat/www_things_cat_segur/images:/var/www/html/images - /home/jordi/bin/wikis/things_cat/www_things_cat_segur/LocalSettings.php:/var/www/html/LocalSettings.php - /home/jordi/bin/wikis/things_cat/www_things_cat_segur:/var/www/html # - /home/jordi/bin/wikis/things_cat/php:/usr/local/etc/php networks: - "net" database: container_name: things_cat_db_docker image: mysql:5.6.48 ports: - 3307:3306 environment: MYSQL_DATABASE: 'wiki_things_cat' MYSQL_USER: 'usuari_BD_things' # # Generate a secure password and place it in the area below # MYSQL_PASSWORD: 'contrasenya_BD_things' MYSQL_ROOT_PASSWORD: 'alguna' MYSQL_RANDOM_ROOT_PASSWORD: 'no' volumes: - /home/jordi/bin/wikis/things_cat/database:/var/lib/mysql restart: unless-stopped networks: - "net" volumes: certs: html: vhost: dhparam: networks: net: external: true