added compose file and its environment informations

This commit is contained in:
bisco 2023-11-05 19:40:29 +01:00
parent 69c307180f
commit b6c090c719
2 changed files with 33 additions and 0 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
COMPOSE_PROJECT_NAME="cyberhackademy"

32
docker-compose.yml Normal file
View File

@ -0,0 +1,32 @@
version: "3"
services:
app:
image: app:slim
build: app
expose:
- "5000"
ports:
- "5000:5000"
networks:
webnet:
aliases:
- app
webserver:
image: webserver:slim
build: webserver
expose:
- "80"
- "443"
ports:
- "80:80"
- "443:443"
networks:
webnet:
aliases:
- www
depends_on:
- app
networks:
webnet: