docker setup

This commit is contained in:
Adrien LSH@42
2023-10-09 15:22:04 +02:00
parent b91c35a41b
commit b1c352cbf8
3 changed files with 47 additions and 0 deletions

34
docker-compose.yml Normal file
View File

@ -0,0 +1,34 @@
version: '3.8'
name: transcendence
services:
nginx:
image: nginx
build: ./nginx/
networks:
- network
ports:
- "8080:80"
depends_on:
- postgres
container_name: nginx
restart: always
postgres:
image: postgres
networks:
- network
volumes:
- db:/var/lib/postgresql/data
container_name: postgres
restart: always
environment:
- "POSTGRES_PASSWORD=michel"
volumes:
db:
networks:
network:
driver: bridge