2020-02-12 16:18:43 +00:00
|
|
|
version: '3.5'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
database:
|
|
|
|
redis:
|
|
|
|
proxy:
|
|
|
|
driver: bridge
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
|
|
|
- subnet: 172.20.0.0/24
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: "postgres"
|
|
|
|
restart: "always"
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=tacticalrmm
|
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_PASS=${POSTGRES_PASS}
|
|
|
|
networks:
|
|
|
|
- database
|
|
|
|
salt:
|
|
|
|
image: "saltstack/salt"
|
|
|
|
volumes:
|
|
|
|
- ./salt:/etc/salt/master.d
|
|
|
|
ports:
|
|
|
|
- "8123:8123"
|
|
|
|
- "4505:4505"
|
|
|
|
- "4506:4506"
|
|
|
|
meshcentral:
|
|
|
|
build:
|
|
|
|
context: ./meshcentral
|
|
|
|
args:
|
|
|
|
- MESH_HOST=${MESH_HOST}
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
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
|
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
- api
|
|
|
|
- meshcentral
|
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
networks:
|
|
|
|
- redis
|
|
|
|
app:
|
|
|
|
build:
|
|
|
|
context: ..
|
|
|
|
dockerfile: "./docker/app/dockerfile"
|
|
|
|
args:
|
|
|
|
- APP_HOST=${APP_HOST}
|
|
|
|
- API_HOST=${API_HOST}
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
api:
|
|
|
|
build:
|
|
|
|
context: ..
|
|
|
|
dockerfile: "./docker/api/dockerfile"
|
|
|
|
args:
|
|
|
|
- DJANGO_SEKRET=${DJANGO_SEKRET}
|
2020-02-16 05:30:41 +00:00
|
|
|
- DJANGO_DEBUG=${DJANGO_DEBUG}
|
2020-02-12 16:18:43 +00:00
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_PASS=${POSTGRES_PASS}
|
|
|
|
- POSTGRES_HOST=${POSTGRES_HOST}
|
|
|
|
- SALT_PASS=${SALT_PASS}
|
|
|
|
- SALT_USER=${SALT_USER}
|
|
|
|
- SALT_HOST=${SALT_HOST}
|
|
|
|
- REDIS_HOST=${REDIS_HOST}
|
|
|
|
- MESH_USER=${MESH_USER}
|
|
|
|
- MESH_HOST=${MESH_HOST}
|
|
|
|
- APP_HOST=${APP_HOST}
|
|
|
|
- API_HOST=${API_HOST}
|
|
|
|
- ADMIN_URL=${ADMIN_URL}
|
|
|
|
- TWO_FACTOR_OTP=${TWO_FACTOR_OTP}
|
2020-02-16 05:30:41 +00:00
|
|
|
- EMAIL_TLS=${EMAIL_TLS}
|
|
|
|
- EMAIL_HOST=${EMAIL_HOST}
|
|
|
|
- EMAIL_USER=${EMAIL_USER}
|
|
|
|
- EMAIL_PASS=${EMAIL_PASS}
|
|
|
|
- EMAIL_PORT=${EMAIL_PORT}
|
|
|
|
- EMAIL_RECIPIENTS=${EMAIL_RECIPIENTS}
|
2020-02-12 16:18:43 +00:00
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
- database
|
|
|
|
- redis
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
celery-service:
|
|
|
|
build:
|
|
|
|
context: ..
|
|
|
|
dockerfile: "./docker/api/dockerfile"
|
|
|
|
args:
|
|
|
|
- DJANGO_SEKRET=${DJANGO_SEKRET}
|
2020-02-17 00:25:15 +00:00
|
|
|
- DJANGO_DEBUG=${DJANGO_DEBUG}
|
2020-02-12 16:18:43 +00:00
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_PASS=${POSTGRES_PASS}
|
|
|
|
- POSTGRES_HOST=${POSTGRES_HOST}
|
|
|
|
- SALT_PASS=${SALT_PASS}
|
|
|
|
- SALT_USER=${SALT_USER}
|
|
|
|
- SALT_HOST=${SALT_HOST}
|
|
|
|
- REDIS_HOST=${REDIS_HOST}
|
|
|
|
- MESH_USER=${MESH_USER}
|
|
|
|
- MESH_HOST=${MESH_HOST}
|
|
|
|
- APP_HOST=${APP_HOST}
|
|
|
|
- API_HOST=${API_HOST}
|
|
|
|
- ADMIN_URL=${ADMIN_URL}
|
|
|
|
- TWO_FACTOR_OTP=${TWO_FACTOR_OTP}
|
2020-02-17 00:25:15 +00:00
|
|
|
- EMAIL_TLS=${EMAIL_TLS}
|
|
|
|
- EMAIL_HOST=${EMAIL_HOST}
|
|
|
|
- EMAIL_USER=${EMAIL_USER}
|
|
|
|
- EMAIL_PASS=${EMAIL_PASS}
|
|
|
|
- EMAIL_PORT=${EMAIL_PORT}
|
|
|
|
- EMAIL_RECIPIENTS=${EMAIL_RECIPIENTS}
|
2020-02-12 16:18:43 +00:00
|
|
|
command: celery -A tacticalrmm worker -l info
|
|
|
|
networks:
|
|
|
|
- redis
|
|
|
|
- database
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
celery-beat:
|
|
|
|
build:
|
|
|
|
context: ..
|
|
|
|
dockerfile: "./docker/api/dockerfile"
|
|
|
|
args:
|
|
|
|
- DJANGO_SEKRET=${DJANGO_SEKRET}
|
2020-02-17 00:25:15 +00:00
|
|
|
- DJANGO_DEBUG=${DJANGO_DEBUG}
|
2020-02-12 16:18:43 +00:00
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_PASS=${POSTGRES_PASS}
|
|
|
|
- POSTGRES_HOST=${POSTGRES_HOST}
|
|
|
|
- SALT_PASS=${SALT_PASS}
|
|
|
|
- SALT_USER=${SALT_USER}
|
|
|
|
- SALT_HOST=${SALT_HOST}
|
|
|
|
- REDIS_HOST=${REDIS_HOST}
|
|
|
|
- MESH_USER=${MESH_USER}
|
|
|
|
- MESH_HOST=${MESH_HOST}
|
|
|
|
- APP_HOST=${APP_HOST}
|
|
|
|
- API_HOST=${API_HOST}
|
|
|
|
- ADMIN_URL=${ADMIN_URL}
|
|
|
|
- TWO_FACTOR_OTP=${TWO_FACTOR_OTP}
|
2020-02-17 00:25:15 +00:00
|
|
|
- EMAIL_TLS=${EMAIL_TLS}
|
|
|
|
- EMAIL_HOST=${EMAIL_HOST}
|
|
|
|
- EMAIL_USER=${EMAIL_USER}
|
|
|
|
- EMAIL_PASS=${EMAIL_PASS}
|
|
|
|
- EMAIL_PORT=${EMAIL_PORT}
|
|
|
|
- EMAIL_RECIPIENTS=${EMAIL_RECIPIENTS}
|
2020-02-12 16:18:43 +00:00
|
|
|
command: celery -A tacticalrmm beat -l info
|
|
|
|
networks:
|
|
|
|
- redis
|
|
|
|
- database
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
celery-winupdate:
|
|
|
|
build:
|
|
|
|
context: ..
|
|
|
|
dockerfile: "./docker/api/dockerfile"
|
|
|
|
args:
|
|
|
|
- DJANGO_SEKRET=${DJANGO_SEKRET}
|
2020-02-17 00:25:15 +00:00
|
|
|
- DJANGO_DEBUG=${DJANGO_DEBUG}
|
2020-02-12 16:18:43 +00:00
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_PASS=${POSTGRES_PASS}
|
|
|
|
- POSTGRES_HOST=${POSTGRES_HOST}
|
|
|
|
- SALT_PASS=${SALT_PASS}
|
|
|
|
- SALT_USER=${SALT_USER}
|
|
|
|
- SALT_HOST=${SALT_HOST}
|
|
|
|
- REDIS_HOST=${REDIS_HOST}
|
|
|
|
- MESH_USER=${MESH_USER}
|
|
|
|
- MESH_HOST=${MESH_HOST}
|
|
|
|
- APP_HOST=${APP_HOST}
|
|
|
|
- API_HOST=${API_HOST}
|
|
|
|
- ADMIN_URL=${ADMIN_URL}
|
|
|
|
- TWO_FACTOR_OTP=${TWO_FACTOR_OTP}
|
2020-02-17 00:25:15 +00:00
|
|
|
- EMAIL_TLS=${EMAIL_TLS}
|
|
|
|
- EMAIL_HOST=${EMAIL_HOST}
|
|
|
|
- EMAIL_USER=${EMAIL_USER}
|
|
|
|
- EMAIL_PASS=${EMAIL_PASS}
|
|
|
|
- EMAIL_PORT=${EMAIL_PORT}
|
|
|
|
- EMAIL_RECIPIENTS=${EMAIL_RECIPIENTS}
|
2020-02-12 16:18:43 +00:00
|
|
|
command: celery -A tacticalrmm worker -Q wupdate
|
|
|
|
networks:
|
|
|
|
- redis
|
|
|
|
- database
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|