-
-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
105 lines (99 loc) · 3.02 KB
/
docker-compose.yml
File metadata and controls
105 lines (99 loc) · 3.02 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
services:
### GenieACS Container ###
# Dockerfile: https://hub.docker.com/r/drumsergio/genieacs/Dockerfile
genieacs:
depends_on:
mongo:
condition: service_healthy
image: drumsergio/genieacs:1.2.16.0
restart: unless-stopped
container_name: genieacs
environment:
GENIEACS_UI_JWT_SECRET: changeme
GENIEACS_CWMP_ACCESS_LOG_FILE: /var/log/genieacs/genieacs-cwmp-access.log
GENIEACS_NBI_ACCESS_LOG_FILE: /var/log/genieacs/genieacs-nbi-access.log
GENIEACS_FS_ACCESS_LOG_FILE: /var/log/genieacs/genieacs-fs-access.log
GENIEACS_UI_ACCESS_LOG_FILE: /var/log/genieacs/genieacs-ui-access.log
GENIEACS_DEBUG_FILE: /var/log/genieacs/genieacs-debug.yaml
GENIEACS_EXT_DIR: /opt/genieacs/ext
# For production with auth enabled, use:
# GENIEACS_MONGODB_CONNECTION_URL: mongodb://root:passwordchange@mongo/genieacs?authSource=admin
GENIEACS_MONGODB_CONNECTION_URL: mongodb://mongo/genieacs?authSource=admin
ports:
- "7547:7547"
- "7557:7557"
- "7567:7567"
- "3000:3000"
volumes:
- ext_volume:/opt/genieacs/ext
networks:
- genieacs_network
healthcheck:
test: ["CMD", "wget", "--spider", "--quiet", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
### Main GenieACS DB: MongoDB ###
mongo:
image: mongo:8.0
restart: unless-stopped
container_name: mongo-genieacs
environment:
# Uncomment for production use (must also update GENIEACS_MONGODB_CONNECTION_URL above)
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: passwordchange
MONGO_DATA_DIR: /data/db
MONGO_LOG_DIR: /var/log/mongodb
volumes:
- data_db:/data/db
- data_configdb:/data/configdb
expose:
- "27017"
networks:
- genieacs_network
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
start_period: 40s
### THIS SERVICE IS JUST FOR TESTING ###
# Dockerfile here: https://hub.docker.com/r/drumsergio/genieacs-sim/Dockerfile
genieacs-sim:
depends_on:
genieacs:
condition: service_healthy
image: drumsergio/genieacs-sim:latest
container_name: genieacs-sim
restart: unless-stopped
networks:
- genieacs_network
profiles:
- testing
### GenieACS MCP Server (AI) ###
# Dockerfile here: https://hub.docker.com/r/drumsergio/genieacs-mcp/Dockerfile
genieacs-mcp:
depends_on:
genieacs:
condition: service_healthy
image: drumsergio/genieacs-mcp:latest
container_name: genieacs-mcp
restart: unless-stopped
environment:
ACS_URL: http://genieacs:7557
ACS_USER: admin
ACS_PASS: admin # Set by default after the wizard, please change
TRANSPORT: http
ports:
- "8080:8080"
networks:
- genieacs_network
profiles:
- mcp
volumes:
data_db:
data_configdb:
ext_volume:
networks:
genieacs_network: