forked from its-a-feature/Mythic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·39 lines (38 loc) · 1.4 KB
/
docker-compose.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
version: '2.4'
services:
postgres:
build: ./postgres-docker
container_name: mythic_postgres
network_mode: host
volumes:
- ./postgres-docker/database:/var/lib/postgresql/data
labels:
NAME: "mythic_postgres"
restart: on-failure
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
rabbitmq:
build: ./rabbitmq-docker
container_name: mythic_rabbitmq
network_mode: host
volumes:
- ./rabbitmq-docker/storage:/var/lib/rabbitmq
labels:
NAME: "mythic_rabbitmq"
restart: on-failure
#mem_limit: 512M
mythic:
build: ./mythic-docker
network_mode: host
container_name: mythic_server
volumes:
- ./mythic-docker:/Mythic
labels:
NAME: "mythic_server"
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
depends_on:
- postgres
- rabbitmq
restart: on-failure
command: ["./wait-for-postgres.sh", "127.0.0.1:5432", "--", "python", "/Mythic/server.py"]