Skip to content

Instantly share code, notes, and snippets.

@Jaxmetalmax
Last active March 10, 2023 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jaxmetalmax/1bc150ccc015dfe150f6caf12cb9a272 to your computer and use it in GitHub Desktop.
Save Jaxmetalmax/1bc150ccc015dfe150f6caf12cb9a272 to your computer and use it in GitHub Desktop.
version: '3.1'
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
volumes:
- ./wordpress:/var/www/html
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- db:/var/lib/mysql
volumes:
# wordpress: #si usaramos un volumen que no sea de punto de montaje
db:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment