Skip to content

Instantly share code, notes, and snippets.

@codebygina
Last active August 8, 2020 23:49
Show Gist options
  • Save codebygina/590ce1ecf95535df1b25e87866c407dd to your computer and use it in GitHub Desktop.
Save codebygina/590ce1ecf95535df1b25e87866c407dd to your computer and use it in GitHub Desktop.

Revisions

  1. codebygina revised this gist Mar 8, 2020. No changes.
  2. codebygina revised this gist May 17, 2019. No changes.
  3. codebygina revised this gist May 17, 2019. No changes.
  4. codebygina created this gist May 17, 2019.
    31 changes: 31 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    version: '3'

    services:
    db:
    image: mysql:5.7
    volumes:
    - db_data:/var/lib/mysql
    restart: always
    environment:
    MYSQL_ROOT_PASSWORD: somewordpress
    MYSQL_DATABASE: wordpress
    MYSQL_USER: wordpress
    MYSQL_PASSWORD: wordpress

    wordpress:
    depends_on:
    - db
    image: wordpress:latest
    ports:
    - "8000:80"
    restart: always
    environment:
    WORDPRESS_DB_HOST: db:3306
    WORDPRESS_DB_USER: wordpress
    WORDPRESS_DB_PASSWORD: wordpress
    WORDPRESS_DEBUG: 1
    working_dir: /var/www/html
    volumes:
    - ./:/var/www/html
    volumes:
    db_data: