Skip to content

Commit

Permalink
Merge branch 'main' of github.com:NablaChem/hummingqueue
Browse files Browse the repository at this point in the history
  • Loading branch information
ferchault committed Jun 29, 2023
2 parents 0dafd3a + 88b2550 commit 4356e10
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ devserver:
prodserver:
docker volume create prod-mongodb
docker volume create prod-minio
docker volume create prod-redis
docker-compose -f docker-compose.yml -f docker-compose.prod.yml -p prod --env-file env.prod.yml up --build -d
testserver:
docker exec dev_api_1 pytest --cov=./
Expand Down
15 changes: 15 additions & 0 deletions src/docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
version: "3.3"

services:
hmq:
volumes:
- "./server/app/:/code/app/"
mongo:
volumes:
- "prod-mongodb:/data/db"
minio:
volumes:
- "prod-minio:/data"
redis:
volumes:
- "prod-redis:/data"

traefik:
env_file:
- "./env.prod.SSL.yml"
Expand Down Expand Up @@ -40,3 +53,5 @@ volumes:
external: True
prod-mongodb:
external: True
prod-redis:
external: True
13 changes: 13 additions & 0 deletions src/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ services:

# Authentication
- "traefik.http.middlewares.auth.basicauth.users=admin:${TRAEFIK_ADMIN_PASS}"
redis:
image: "redis:latest"
restart: "unless-stopped"
environment:
- "ALLOW_EMPTY_PASSWORD=yes"
labels:
- "traefik.enable=true"
- "traefik.tcp.routers.redis.service=redis"
- "traefik.tcp.routers.redis.rule=HostSNI(`redis.${BASEURL}`)"
- "traefik.tcp.routers.redis.tls=true"
- "traefik.tcp.routers.redis.tls.certresolver=lets-encrypt"
- "traefik.tcp.services.redis.loadbalancer.server.port=6379"
- "traefik.tcp.routers.redis.entrypoints=websecure"

mongo:
image: "mongo:5.0"
Expand Down

0 comments on commit 4356e10

Please sign in to comment.