Jafner.net/archive/self-hosting/wordpress/nvgm/docker-compose.yml
Joey Hafner 6086222503
Reorganize root level of repo.
- Move homelab, Jafner.dev (now called blog) to root.
- Rename "archived projects" -> "archive"
- Rename "active projects" -> "projects"
- Rename "jafner-homebrew" -> "5ehomebrew"
- Rename "docker-llm-amd" -> "local-ai"
2024-07-16 12:17:55 -07:00

43 lines
1.4 KiB
YAML
Executable File

version: '3.1'
services:
nvgm:
image: wordpress
container_name: wordpress-nvgm
restart: always
environment:
WORDPRESS_DB_HOST: nvgm-db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpressdb
volumes:
- /home/joey/docker/wordpress/nvgm/html:/var/www/html
networks:
- web
- wordpress
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:nvgm.jafner.net"
- "traefik.port=80"
- "traefik.docker.network=web"
nvgm-db:
image: mysql:5.7
container_name: wordpress-nvgm-db
restart: always
networks:
- web
- wordpress
environment:
MYSQL_DATABASE: wordpressdb
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- /home/joey/docker/wordpress/nvgm/db:/var/lib/mysql
networks:
web:
external: true
wordpress: