44 lines
968 B
YAML
44 lines
968 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
thalos-dal:
|
|
image: thalos-dal:latest
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "5000:85" # Expose only if you need access to this API externally
|
|
environment:
|
|
- ASPNETCORE_ENVIRONMENT=Production
|
|
- ConnectionStrings__MongoDB=mongodb://admin_agile:Admin%40agileWebs@mongodb:27017/?authMechanism=SCRAM-SHA-256
|
|
- ConnectionStrings__Redis=redis:6379
|
|
depends_on:
|
|
- mongodb
|
|
- redis
|
|
networks:
|
|
- thalos-net
|
|
volumes:
|
|
- /mnt/data-media/agilewebs/api/thalos:/app/data
|
|
|
|
mongodb:
|
|
image: mongo:7
|
|
container_name: thalos-mongodb
|
|
volumes:
|
|
- /mnt/data-media/agilewebs/api/thalos/mongodb:/data/db
|
|
networks:
|
|
- thalos-net
|
|
|
|
redis:
|
|
image: redis:7
|
|
container_name: thalos-redis
|
|
volumes:
|
|
- /mnt/data-media/agilewebs/api/thalos/redis:/data
|
|
networks:
|
|
- thalos-net
|
|
|
|
volumes:
|
|
mongo-data:
|
|
|
|
networks:
|
|
thalos-net:
|