-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose-example-3.yaml
51 lines (50 loc) · 1.32 KB
/
docker-compose-example-3.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '2'
# This is example 3 from the documentation
services:
meshcentral:
container_name: meshcentral
image: ghcr.io/gurucomputing/meshcentral-docker:latest
restart: "always"
volumes:
- ./container-data/meshcentral-data:/meshcentral/meshcentral-data
- ./container-data/meshcentral-files:/meshcentral/meshcentral-files
- ./container-data/meshcentral-backup:/meshcentral/meshcentral-backup
- /etc/localtime:/etc/localtime:ro
environment:
- MONGODB_URL=mongodb://meshcentral-db:27017
- MONGODB_NAME=meshcentral
- DB_ENCRYPT_KEY=${DB_ENCRYPT_KEY}
- AGENT_PORT=8800
- CERT=mesh.mydomain.com
ports:
- 8800:8800
# - 80:80
# - 443:443
networks:
- meshcentral-nw
- reverseproxy-nw
meshcentral-db:
container_name: meshcentral-db
image: mongo:latest
restart: "always"
volumes:
- ./container-data/db:/data/db
- /etc/localtime:/etc/localtime:ro
# ports:
# - 27017:27017
networks:
- meshcentral-nw
meshcentral-proxy:
container_name: meshcentral-proxy
image: caddy:latest
restart: "always"
volumes:
- caddy/Caddyfile:/usr/share/caddy/Caddyfile
ports:
- 80:80
- 443:443
networks:
- reverseproxy-nw
networks:
meshcentral-nw:
reverseproxy-nw: