-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.host.yml
48 lines (43 loc) · 1.44 KB
/
docker-compose.host.yml
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
version: '3.5'
services:
simplevm-client:
container_name: simplevm-client
image: quay.io/denbicloud/simplevm-client:${CLOUD_PORTAL_CLIENT_TAG}
expose:
- "9090" # Expose the service port
env_file:
- .env
environment:
- TERM=xterm-256color
tty: true
volumes:
- ${client_PERSISTENT_PATH}/config.yml:/code/simple_vm_client/config.yml
- ${client_PERSISTENT_PATH}/server.pem:/code/simple_vm_client/keys/server.pem
- ${client_PERSISTENT_PATH}/server.pem:/code/simple_vm_client/keys/CA.pem
- ./logs/client:/code/simple_vm_client/log:rw
command: python3 VirtualMachineServer.py /code/simple_vm_client/config.yml
network_mode: host # Use the host network namespace
simplevm_client_redis:
container_name: simplevm_client_redis
network_mode: host # Use the host network namespace
image: redis:7.4.1
expose:
- "6379"
networks:
- portal
simplevm_client_filebeat:
container_name: simplevm_client_filebeat
image: docker.elastic.co/beats/filebeat:8.15.3
env_file:
- .env
volumes:
- ./filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml
- ./logs:/usr/share/filebeat/log:ro
- ./filebeat/data:/usr/share/filebeat/data:rw
command: [sh, -c, "chmod go-w /usr/share/filebeat/filebeat.yml && filebeat run -e"]
networks:
portal:
name: portal
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1440