docker-compose.yml: add mongo

This commit is contained in:
vchikalkin 2023-11-01 00:18:37 +03:00
parent d372007e0e
commit bc82c05afd

View File

@ -24,6 +24,7 @@ services:
- API_TOKEN_TTL=${API_TOKEN_TTL}
- API_CACHE_TTL=${API_CACHE_TTL}
- REDIS_HOST=redis
- MONGO_HOST=mongo
restart: always
networks:
- auth_network
@ -35,6 +36,14 @@ services:
networks:
- auth_network
mongo:
image: mongo:latest
networks:
- auth_network
restart: always
volumes:
- /opt/docker-volumes/external-dev:/data/db
server:
extends:
file: docker-compose.traefik.yml
@ -49,6 +58,9 @@ services:
networks:
- auth_network
volumes:
mongo:
networks:
auth_network:
external: