171 lines
4.0 KiB
YAML
171 lines
4.0 KiB
YAML
|
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}
|
||
|
- 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}
|
||
|
networks:
|
||
|
- proxy
|
||
|
- database
|
||
|
- redis
|
||
|
depends_on:
|
||
|
- db
|
||
|
celery-service:
|
||
|
build:
|
||
|
context: ..
|
||
|
dockerfile: "./docker/api/dockerfile"
|
||
|
args:
|
||
|
- DJANGO_SEKRET=${DJANGO_SEKRET}
|
||
|
- 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}
|
||
|
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}
|
||
|
- 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}
|
||
|
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}
|
||
|
- 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}
|
||
|
command: celery -A tacticalrmm worker -Q wupdate
|
||
|
networks:
|
||
|
- redis
|
||
|
- database
|
||
|
depends_on:
|
||
|
- db
|
||
|
- redis
|