2022-07-16 00:21:10 -07:00
|
|
|
version: '3.1'
|
|
|
|
|
|
|
|
services:
|
2022-07-16 16:16:55 -07:00
|
|
|
megan-portfolio:
|
|
|
|
image: wordpress
|
|
|
|
container_name: wordpress_megan-portfolio
|
|
|
|
restart: "no"
|
|
|
|
environment:
|
2022-07-16 16:27:56 -07:00
|
|
|
WORDPRESS_DB_HOST: megan-portfolio_db
|
2022-07-16 16:16:55 -07:00
|
|
|
WORDPRESS_DB_USER: wordpress
|
|
|
|
WORDPRESS_DB_PASSWORD: wordpress
|
|
|
|
WORDPRESS_DB_NAME: wordpressdb
|
|
|
|
volumes:
|
|
|
|
- ${DOCKER_DATA}/html:/var/www/html
|
2022-07-20 12:50:14 -07:00
|
|
|
- ./upload.ini:/usr/local/etc/php/conf.d/uploads.ini
|
2022-07-16 16:16:55 -07:00
|
|
|
labels:
|
|
|
|
- traefik.http.routers.megan-portfolio.rule=Host(`meganmcdonough.art`)
|
|
|
|
- traefik.http.routers.megan-portfolio.tls.certresolver=lets-encrypt
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
- portfolio
|
|
|
|
depends_on:
|
2022-07-16 16:18:44 -07:00
|
|
|
- megan-portfolio_db
|
2022-07-16 15:20:55 -07:00
|
|
|
|
2022-07-16 16:18:27 -07:00
|
|
|
megan-portfolio_db:
|
2022-07-16 16:16:55 -07:00
|
|
|
image: mysql:5.7
|
2022-07-16 16:18:27 -07:00
|
|
|
container_name: wordpress_megan-portfolio-db
|
2022-07-16 16:16:55 -07:00
|
|
|
restart: "no"
|
|
|
|
networks:
|
|
|
|
- portfolio
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: wordpressdb
|
|
|
|
MYSQL_USER: wordpress
|
|
|
|
MYSQL_PASSWORD: wordpress
|
|
|
|
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
|
|
|
volumes:
|
|
|
|
- ${DOCKER_DATA}/db:/var/lib/mysql
|
|
|
|
labels:
|
|
|
|
- traefik.enable=false
|
2022-07-16 00:21:10 -07:00
|
|
|
|
2022-07-16 16:17:27 -07:00
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|
2022-07-20 12:50:14 -07:00
|
|
|
portfolio:
|