bvplan/docker-compose.yml

89 lines
2 KiB
YAML
Raw Normal View History

2022-12-12 16:54:07 +00:00
version: "3"
2022-12-14 18:13:32 +00:00
x-backend:
&backend
image: git.dergrimm.net/dergrimm/bvplan_backend:latest
build:
context: ./backend
restart: always
command: worker
depends_on:
- postgres
- rabbitmq
2023-01-17 05:54:45 +00:00
- redis
2022-12-14 18:13:32 +00:00
environment:
BACKEND_DB_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_USER}
BACKEND_AMQP_URL: amqp://${RABBITMQ_USER}:${RABBITMQ_PASSWORD}@rabbitmq:5672
2023-01-17 05:54:45 +00:00
BACKEND_REDIS_URL: redis://redis:6379
2022-12-14 18:13:32 +00:00
BACKEND_UNTIS_API_URL: ${BACKEND_UNTIS_API_URL}
BACKEND_UNTIS_RPC_URL: ${BACKEND_UNTIS_RPC_URL}
BACKEND_UNTIS_CLIENT_NAME: ${BACKEND_UNTIS_CLIENT_NAME}
BACKEND_UNTIS_SCHOOL: ${BACKEND_UNTIS_SCHOOL}
BACKEND_UNTIS_USERNAME: ${BACKEND_UNTIS_USERNAME}
BACKEND_UNTIS_PASSWORD: ${BACKEND_UNTIS_PASSWORD}
2023-01-17 05:54:45 +00:00
BACKEND_UNTIS_VPLAN_URL: ${BACKEND_UNTIS_VPLAN_URL}
BACKEND_UNTIS_VPLAN_USERNAME: ${BACKEND_UNTIS_VPLAN_USERNAME}
BACKEND_UNTIS_VPLAN_PASSWORD: ${BACKEND_UNTIS_VPLAN_PASSWORD}
2022-12-14 18:13:32 +00:00
2022-12-12 16:54:07 +00:00
services:
nginx:
image: docker.io/byjg/nginx-extras
restart: always
volumes:
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- 80:80
depends_on:
- adminer
- rabbitmq
- api
postgres:
image: docker.io/postgres:alpine
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres:/var/lib/postgresql/data
adminer:
image: docker.io/adminer:standalone
restart: always
depends_on:
- postgres
rabbitmq:
2023-01-17 05:54:45 +00:00
image: docker.io/rabbitmq:3-alpine
2022-12-12 16:54:07 +00:00
restart: always
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
volumes:
- rabbitmq:/var/lib/rabbitmq
2023-01-17 05:54:45 +00:00
redis:
image: docker.io/redis:alpine
restart: always
volumes:
- redis:/data
2022-12-12 16:54:07 +00:00
worker:
2022-12-14 18:13:32 +00:00
<<: *backend
2022-12-12 16:54:07 +00:00
command: worker
api:
2022-12-14 18:13:32 +00:00
<<: *backend
2022-12-12 16:54:07 +00:00
command: api
2022-12-20 18:00:12 +00:00
depends_on:
- postgres
- rabbitmq
- worker
2022-12-12 16:54:07 +00:00
volumes:
postgres:
rabbitmq:
2023-01-17 05:54:45 +00:00
redis:
2022-12-12 16:54:07 +00:00