-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (58 loc) · 1.45 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '3'
services:
web:
container_name: honeynet_web
# image: quay.io/mnecas0/honeynet:latest
build: .
command:
- /bin/bash
- -c
- |
python3 manage.py collectstatic --noinput
python3 manage.py migrate \
--settings web_server.settings.production \
--noinput
python3 manage.py create_admin \
--settings web_server.settings.production
python3 manage.py runserver \
--settings web_server.settings.production \
127.0.0.1:8000
network_mode: host
restart: always
volumes:
- /var/log:/var/log
- /var/run/docker.sock:/var/run/docker.sock
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
depends_on:
db:
condition: service_healthy
db:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
network_mode: host
volumes:
- ./10-init-db.sql:/docker-entrypoint-initdb.d/
10-init-db.sql
- db:/var/lib/postgresql/data
syslogserver:
# image: quay.io/mnecas0/honeypot-rsyslog:latest
build: deployment/logging/
container_name: syslog
restart: always
volumes:
- /var/log:/var/log
cap_add:
- SYSLOG
volumes:
db:
driver: local