35 lines
501 B
YAML
35 lines
501 B
YAML
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
|