Ressources pour la LP Cyber - IUT Vannes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
672 B

version: "3.3"
services:
db:
image: postgres
container_name: postgres
#networks:
# - postgres
environment:
- POSTGRES_DB=clientsdb
- POSTGRES_PASSWORD=foo
- POSTGRES_USER=www
ports:
- 5432:5432
volumes:
- ${PWD}/sqlinit:/docker-entrypoint-initdb.d
- mydb:/var/lib/postgresql/data
webapp:
build: webapp/
image: webapp-image
container_name: webapp
ports:
- 80:80
volumes:
- ${PWD}/webapp:/var/www/html
phppgadmin:
image: bitnami/phppgadmin
container_name: phppgadmin
ports:
- 81:8080
environment:
- DATABASE_HOST=postgres
volumes:
mydb: