docker-projects/docker-compose-wp.yml

33 lines
606 B
YAML
Raw Permalink Normal View History

version: "3"
services:
db:
image: mariadb:lts
expose:
- "3306"
env_file:
- envs/db
volumes:
- ./data/db:/var/lib/mysql/
networks:
webnet:
aliases:
- dbsrv
frontend:
image: php:8.2-wp
build: frontend
expose:
- "80"
ports:
- "80:80"
volumes:
- ./data/htdocs:/var/www/html/
networks:
webnet:
aliases:
- www
depends_on:
- db
networks:
webnet: