Files
homepage/docker-compose.yaml

36 lines
804 B
YAML
Executable File

#
# Check README.md for some notes on the intended usage here.
#
services:
app:
image: php:8.2-apache
hostname: app
container_name: app
ports:
- "8080:80"
volumes:
- ./app/:/var/www/html:Z
- ./lib:/var/www/html/lib:Z
- ./${HLBDAT:-dat.live}:/var/www/html/dat:Z
- ./entrypoint.sh:/entrypoint.sh:Z
entrypoint: ["bash", "/entrypoint.sh"]
networks:
- labnet
adm:
image: php:8.2-apache
hostname: adm
container_name: adm
ports:
- "8081:80"
volumes:
- ./adm/:/var/www/html:Z
- ./lib:/var/www/html/lib:Z
- ./${HLBDAT:-dat.live}:/var/www/html/dat:Z
- ./entrypoint.sh:/entrypoint.sh:Z
entrypoint: ["bash", "/entrypoint.sh"]
networks:
- labnet
networks:
labnet:
external: true