php-app/docker-compose.yml

54 lines
1.2 KiB
YAML

version: "2"
services:
app:
image: app:latest
build: app
expose:
- "9000"
ports:
- "9000:9000"
volumes:
- /home/bisco/stuff/data/docker/volumes/nginx/htdocs:/var/www/localhost/htdocs
networks:
webnet:
aliases:
- app
db:
image: mariadb:latest
build: mariadb
env_file: mariadb/envs/prod
volumes:
- /home/bisco/stuff/data/docker/volumes/mysql:/var/lib/mysql
expose:
- "3306"
ports:
- "3306:3306"
networks:
webnet:
aliases:
- db
www:
image: nginx:latest
build: nginx
expose:
- "80"
- "443"
ports:
- "80:80"
- "443:443"
volumes:
- /home/bisco/stuff/data/docker/volumes/nginx/certs:/etc/nginx/certs
- /home/bisco/stuff/data/docker/volumes/nginx/htdocs:/var/www/localhost/htdocs
networks:
webnet:
aliases:
- www
depends_on:
- app
- db
networks:
webnet: