docker setup
This commit is contained in:
34
docker-compose.yml
Normal file
34
docker-compose.yml
Normal 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
|
Reference in New Issue
Block a user