bvplan/docker-compose.yml

108 lines
2.4 KiB
YAML
Raw Normal View History

2022-12-12 16:54:07 +00:00
version: "3"
2023-02-27 10:09:16 +00:00
x-bvplan:
&bvplan
2023-02-28 11:18:52 +00:00
image: git.dergrimm.net/dergrimm/bvplan:latest
2022-12-14 18:13:32 +00:00
build:
2023-02-27 10:09:16 +00:00
context: ./bvplan
2022-12-14 18:13:32 +00:00
restart: always
command: worker
depends_on:
2023-02-27 10:09:16 +00:00
- db
2022-12-14 18:13:32 +00:00
- rabbitmq
2023-01-17 05:54:45 +00:00
- redis
2022-12-14 18:13:32 +00:00
environment:
2023-02-28 11:16:33 +00:00
BVPLAN_DB_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_USER}
BVPLAN_AMQP_URL: amqp://${RABBITMQ_USER}:${RABBITMQ_PASSWORD}@rabbitmq:5672
BVPLAN_REDIS_URL: redis://redis:6379
BVPLAN_UNTIS_API_URL: ${BVPLAN_UNTIS_API_URL}
BVPLAN_UNTIS_RPC_URL: ${BVPLAN_UNTIS_RPC_URL}
BVPLAN_UNTIS_CLIENT_NAME: ${BVPLAN_UNTIS_CLIENT_NAME}
BVPLAN_UNTIS_SCHOOL: ${BVPLAN_UNTIS_SCHOOL}
BVPLAN_UNTIS_USERNAME: ${BVPLAN_UNTIS_USERNAME}
BVPLAN_UNTIS_PASSWORD: ${BVPLAN_UNTIS_PASSWORD}
BVPLAN_UNTIS_VPLAN_URL: ${BVPLAN_UNTIS_VPLAN_URL}
BVPLAN_UNTIS_VPLAN_USERNAME: ${BVPLAN_UNTIS_VPLAN_USERNAME}
BVPLAN_UNTIS_VPLAN_PASSWORD: ${BVPLAN_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
2023-02-27 10:09:16 +00:00
- 8080:8080
2022-12-12 16:54:07 +00:00
depends_on:
- adminer
- rabbitmq
2023-02-27 10:09:16 +00:00
- web
- redis-commander
2022-12-12 16:54:07 +00:00
2023-02-27 10:09:16 +00:00
db:
image: docker.io/postgres:15-alpine
2022-12-12 16:54:07 +00:00
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
2023-02-27 10:09:16 +00:00
- db:/var/lib/postgresql/data
2022-12-12 16:54:07 +00:00
adminer:
image: docker.io/adminer:standalone
restart: always
depends_on:
2023-02-27 10:09:16 +00:00
- db
2022-12-12 16:54:07 +00:00
rabbitmq:
2023-02-27 10:09:16 +00:00
image: docker.io/rabbitmq:3-management-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
2023-02-27 10:09:16 +00:00
redis-commander:
image: rediscommander/redis-commander:latest
restart: always
environment:
REDIS_HOSTS: local:redis:6379
URL_PREFIX: /redis
depends_on:
- redis
2022-12-12 16:54:07 +00:00
worker:
2023-02-27 10:09:16 +00:00
<<: *bvplan
2022-12-12 16:54:07 +00:00
command: worker
2023-02-27 10:09:16 +00:00
volumes:
2023-02-27 13:04:16 +00:00
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
2023-02-27 10:09:16 +00:00
- ./data/backups:/backups
2022-12-12 16:54:07 +00:00
2023-02-27 10:09:16 +00:00
web:
<<: *bvplan
command: web
2022-12-20 18:00:12 +00:00
depends_on:
2023-02-27 10:09:16 +00:00
- db
2022-12-20 18:00:12 +00:00
- rabbitmq
- worker
2023-02-27 10:09:16 +00:00
- redis
2023-02-27 13:04:16 +00:00
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
2022-12-12 16:54:07 +00:00
volumes:
2023-02-27 10:09:16 +00:00
db:
2022-12-12 16:54:07 +00:00
rabbitmq:
2023-01-17 05:54:45 +00:00
redis:
2022-12-12 16:54:07 +00:00