Files
homepage/docker-compose.yaml

41 lines
923 B
YAML
Executable File

#
# By default the dat.live folder will be mounted.
# For testing you might like to switch to dat.test
# The HLBDAT environment variable will do this for you.
# If that variable is unset, dat.live will be used.
# To use dat.test instead, run this...
#
# $ HLBDAT=dat.test docker compose up
#
# ...but if you're happy to play with the live data
# this will do...
#
# $ docker compose up
#
services:
app:
image: php:8.2-apache
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
networks:
- labnet
adm:
image: php:8.2-apache
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
networks:
- labnet
networks:
labnet:
external: true