Files
homepage/docker-compose.yaml

37 lines
886 B
YAML
Executable File

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