Skip to content

Instantly share code, notes, and snippets.

@vusimoy0
Created April 27, 2020 19:04
Show Gist options
  • Save vusimoy0/11c448f08fa9d3e121b3d281d935e73c to your computer and use it in GitHub Desktop.
Save vusimoy0/11c448f08fa9d3e121b3d281d935e73c to your computer and use it in GitHub Desktop.

Revisions

  1. vusimoy0 renamed this gist Apr 27, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. vusimoy0 created this gist Apr 27, 2020.
    24 changes: 24 additions & 0 deletions mariadb_compose_config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    version: '3.6'
    services:
    fix-mariadb-volume-ownership:
    image: 'bitnami/mariadb:latest'
    user: root
    command: chown -R 1001:1001 /bitnami
    volumes:
    - './mariadb_data:/bitnami'
    mariadb:
    image: 'bitnami/mariadb:latest'
    volumes:
    - './mariadb_data:/bitnami'
    environment:
    - MARIADB_PORT_NUMBER=[PORT NUMBER]
    - MARIADB_ROOT_PASSWORD=[ROOT PASSWORD]
    - MARIADB_USER=[DB USER]
    - MARIADB_PASSWORD=[DB PASSWPRD]
    - MARIADB_DATABASE=[bitnami_wp]
    depends_on:
    - fix-mariadb-volume-ownership
    networks:
    default:
    external:
    name: wordpress-net