forked from blacklanternsecurity/writehat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (61 loc) · 1.56 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
59
60
61
62
63
64
65
66
67
version: '3.7'
services:
nginx:
image: nginx
volumes:
- ./nginx:/opt/writehat/nginx
- ./writehat/config/nginx.conf:/etc/nginx/conf.d/writehat.conf
- ./writehat/static:/opt/writehat/static
ports:
- 80:80
- 443:443
restart: unless-stopped
depends_on:
- writehat
writehat:
build:
context: .
dockerfile: ./writehat/config/Dockerfile.app
command: bash -c "
sleep 2 &&
./manage.py makemigrations writehat &&
./manage.py migrate writehat &&
./manage.py makemigrations &&
./manage.py migrate &&
uwsgi --socket 0.0.0.0:8000 --plugin-dir=/usr/lib/uwsgi/plugins --plugin python3 -w writehat.wsgi:application --processes=4 --master --vacuum"
volumes:
- .:/opt/writehat
expose:
- 8000
restart: unless-stopped
depends_on:
- mongo
- mysql
mongo:
image: mongo:4.4
volumes:
- ./mongo/configdb:/data/configdb
- ./mongo/db:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=FORTHELOVEOFGEEBUSPLEASECHANGETHIS
expose:
- 27017
mysql:
image: mysql
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: CHANGETHISIFYOUAREANINTELLIGENTHUMANBEING
MYSQL_DATABASE: writehat
MYSQL_USER: writehat
MYSQL_PASSWORD: CHANGETHISIFYOUAREANINTELLIGENTHUMANBEING
expose:
- 3306
restart: unless-stopped
chrome:
image: selenium/standalone-chrome:latest
expose:
- 4444
depends_on:
- writehat