szoe-pontok/docker-compose.yml

54 lines
1020 B
YAML
Raw Permalink Normal View History

2024-10-10 15:34:48 +00:00
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
2024-10-10 18:22:03 +00:00
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
2024-10-10 15:34:48 +00:00
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
2024-10-10 18:22:03 +00:00
redis:
image: redis:alpine
ports:
- 6379:6379
environment:
REDIS_ARGS: --requirepass redis
2024-10-10 15:34:48 +00:00
backend:
image: dowerx/szoe
build:
context: .
dockerfile: Dockerfile
tags:
- dowerx/szoe
2024-10-10 18:22:03 +00:00
ports:
- 5000:5000
environment: []
2024-10-10 15:34:48 +00:00
depends_on:
- db
2024-10-10 18:22:03 +00:00
- redis
2024-10-10 15:34:48 +00:00
volumes:
pgdata: