szoe-pontok/docker-compose.yml
2024-10-10 20:22:03 +02:00

54 lines
1020 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
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
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
redis:
image: redis:alpine
ports:
- 6379:6379
environment:
REDIS_ARGS: --requirepass redis
backend:
image: dowerx/szoe
build:
context: .
dockerfile: Dockerfile
tags:
- dowerx/szoe
ports:
- 5000:5000
environment: []
depends_on:
- db
- redis
volumes:
pgdata: