Jafner.net/archive/docker_config/landing/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

47 lines
1.3 KiB
YAML

version: '3.1'
services:
landing:
image: wordpress
container_name: landing
restart: always
environment:
WORDPRESS_DB_HOST: landing_db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpressdb
volumes:
- ${DOCKER_DATA}/html:/var/www/html
- ./docker-php-memlimit.ini:/usr/local/etc/php/conf.d/docker-php-memlimit.ini:ro
labels:
- traefik.http.routers.landing.rule=Host(`www.jafner.net`)
- traefik.http.routers.landing.tls=true
- traefik.http.routers.landing.tls.certresolver=lets-encrypt
- traefik.port=80
networks:
- web
- landing
depends_on:
- landing_db
landing_db:
image: mysql:5.7
container_name: landing_db
restart: always
networks:
- landing
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
networks:
web:
external: true
landing: