szoe-pontok/docker-compose.yml
2024-10-10 17:34:48 +02:00

42 lines
780 B
YAML

services:
db:
image: postgres:17-bookworm
ports:
- 5432:5432
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: szoe
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- pgdata:/var/lib/postgresql/data
adminer:
image: adminer
ports:
- 8080:8080
depends_on:
- db
nginx:
image: nginx:1.27-alpine-slim
ports:
- 80:80
environment:
NGINX_PORT: 80
volumes:
- ./default.conf.template:/etc/nginx/templates/default.conf.template:ro
- ./static:/usr/share/nginx/html:ro
backend:
image: dowerx/szoe
build:
context: .
dockerfile: Dockerfile
tags:
- dowerx/szoe
depends_on:
- db
volumes:
pgdata: