tacticalrmm/docker/docker-compose.yml

79 lines
1.4 KiB
YAML
Raw Normal View History

2020-04-06 18:21:52 +00:00
version: '3.7'
2020-02-12 16:18:43 +00:00
# Userdefined Networks
2020-02-12 16:18:43 +00:00
networks:
database:
redis:
proxy:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.20.0.0/24
# Docker managed persistent volumes
volumes:
# Volume for userdefined scripts
scripts:
2020-02-12 16:18:43 +00:00
services:
# Postgres Database for API service
2020-02-12 16:18:43 +00:00
db:
2020-04-06 18:21:52 +00:00
image: postgres:11.7
2020-02-12 16:18:43 +00:00
environment:
2020-04-06 18:21:52 +00:00
POSTGRES_DB: tacticalrmm
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASS}
2020-02-12 16:18:43 +00:00
networks:
- database
2020-04-06 18:21:52 +00:00
# Redis Container for Celery tasks
redis:
image: redis
networks:
- redis
# Salt Master and API
2020-02-12 16:18:43 +00:00
salt:
build:
context: ..
dockerfile: ./docker/salt/dockerfile
args:
- SALT_USER=${SALT_USER}
- SALT_PASS=${SALT_PASS}
2020-02-12 16:18:43 +00:00
ports:
- "8123:8123"
- "4505:4505"
- "4506:4506"
volumes:
2020-04-06 18:21:52 +00:00
- scripts:/srv
networks:
- proxy
# MeshCentral Container
2020-02-12 16:18:43 +00:00
meshcentral:
build:
context: ./meshcentral
args:
- MESH_HOST=${MESH_HOST}
networks:
- proxy
depends_on:
- nginx-proxy
# Nginx Container Reverse Proxy that handles all http/https traffic
2020-02-12 16:18:43 +00:00
nginx-proxy:
build:
context: ./nginx-proxy
args:
- APP_HOST=${APP_HOST}
- API_HOST=${API_HOST}
- MESH_HOST=${MESH_HOST}
ports:
- "80:80"
- "443:443"
networks:
proxy:
ipv4_address: 172.20.0.20