forked from EasyRecon/Hunt3r
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (57 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
61 lines (57 loc) · 1.22 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
version: "3.9"
services:
db:
image: postgres
volumes:
- ./backend/tmp/db:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
networks:
hunt3r_network:
aliases:
- db
logging:
options:
max-file: "1"
max-size: "5m"
backend:
build: ./backend
command: bash -c "sed -i 's;YOUR_JWT_SUPER_SECRET;'$$(openssl rand -base64 32)';' ./lib/json_web_token.rb && rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- ./backend:/hunt3r
networks:
hunt3r_network:
aliases:
- backend.local
logging:
options:
max-file: "1"
max-size: "2m"
depends_on:
- db
frontend:
build: ./frontend
networks:
hunt3r_network:
aliases:
- frontend.local
logging:
options:
max-file: "1"
max-size: "2m"
proxy_hunt3r:
restart: always
image: nginx:alpine
ports:
- "80:80"
depends_on:
- frontend
- backend
networks:
hunt3r_network:
volumes:
- ./conf/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
networks:
hunt3r_network:
volumes:
db: