47 lines
1.1 KiB
YAML
Executable File
47 lines
1.1 KiB
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
|
|
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
|