forked from CERT-Polska/mwdb-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
53 lines (52 loc) · 1.33 KB
/
docker-compose-dev.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
# Docker Compose file for mwdb-core development environment
version: "3.3"
services:
mwdb:
build:
context: .
dockerfile: deploy/docker/Dockerfile
depends_on:
- postgres
- redis
restart: on-failure
env_file:
# NOTE: use gen_vars.sh in order to generate this file
- mwdb-vars.env
environment:
UWSGI_PY_AUTORELOAD: 1
UWSGI_ENABLE_THREADS: 1
MWDB_MAIL_SMTP: "mailhog:1025"
MWDB_MAIL_FROM: "[email protected]"
MWDB_RECAPTCHA_SITE_KEY: "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"
MWDB_RECAPTCHA_SECRET: "6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe"
MWDB_ENABLE_REGISTRATION: 1
volumes:
- "./docker/mail_templates:/app/mail_templates"
- "./mwdb:/app/mwdb"
mwdb-web:
depends_on:
- mwdb
build:
context: .
dockerfile: deploy/docker/Dockerfile-web-dev
ports:
- "80:3000"
environment:
HOST: 0.0.0.0
REACT_APP_API_URL: "/api/"
volumes:
- "./mwdb/web/public:/app/public"
- "./mwdb/web/src:/app/src"
restart: on-failure
postgres:
image: postgres
restart: always
env_file:
# NOTE: use gen_vars.sh in order to generate this file
- postgres-vars.env
redis:
image: redis:alpine
mailhog:
image: mailhog/mailhog:latest
ports:
- "127.0.0.1:8025:8025"