Skip to content

Instantly share code, notes, and snippets.

@rafpro
Forked from ogawa0071/compose.yaml
Created August 10, 2022 13:55
Show Gist options
  • Select an option

  • Save rafpro/6e58ff5e9eee4f4667d99d0f91890693 to your computer and use it in GitHub Desktop.

Select an option

Save rafpro/6e58ff5e9eee4f4667d99d0f91890693 to your computer and use it in GitHub Desktop.
Docker Compose - WordPress with PlanetScale
services:
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
WORDPRESS_CONFIG_EXTRA: define( 'MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL );
volumes:
- wordpress:/var/www/html
# db:
# image: mariadb
# restart: always
# environment:
# MYSQL_DATABASE: exampledb
# MYSQL_USER: exampleuser
# MYSQL_PASSWORD: examplepass
# MYSQL_RANDOM_ROOT_PASSWORD: "1"
# volumes:
# - db:/var/lib/mysql
volumes:
wordpress:
# db:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment