-
Notifications
You must be signed in to change notification settings - Fork 74
/
docker-compose-dev-remote.yml
111 lines (109 loc) · 2.76 KB
/
docker-compose-dev-remote.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Docker Compose file for mwdb-core development environment
version: "3.3"
services:
minio:
image: minio/minio
command: server /data
volumes:
- /tmp/minio:/data
ports:
- "127.0.0.1:9000:9000"
environment:
- MINIO_ROOT_USER=mwdb-test-access
- MINIO_ROOT_PASSWORD=mwdb-test-key
mwdb:
build:
context: .
dockerfile: deploy/docker/Dockerfile
depends_on:
- postgres
- redis
- minio
restart: on-failure
env_file:
# NOTE: use gen_vars.sh in order to generate this file
- mwdb-vars.env
environment:
HOT_RELOAD: 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
# Uncomment if you want to test S3 functions
# MWDB_STORAGE_PROVIDER: s3
# MWDB_HASH_PATHING: 0
# MWDB_S3_STORAGE_ENDPOINT: "minio:9000"
# MWDB_S3_STORAGE_ACCESS_KEY: "mwdb-test-access"
# MWDB_S3_STORAGE_SECRET_KEY: "mwdb-test-key"
# MWDB_S3_STORAGE_BUCKET_NAME: "mwdb"
volumes:
- "./docker/mail_templates:/app/mail_templates"
- "./mwdb:/app/mwdb"
- "./mwdb.ini:/app/mwdb.ini"
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"
mwdb1:
build:
context: .
dockerfile: deploy/docker/Dockerfile
depends_on:
- postgres1
- redis
image: certpl/mwdb
restart: on-failure
env_file:
# NOTE: use gen_vars.sh in order to generate this file
- mwdb-vars1.env
volumes:
- mwdb-uploads1:/app/uploads
mwdb1-web:
depends_on:
- mwdb1
build:
context: .
dockerfile: deploy/docker/Dockerfile-web-dev
image: certpl/mwdb1-web
ports:
- "8085:3000"
restart: on-failure
environment:
PROXY_BACKEND_URL: "http://mwdb1.:8080"
HOST: 0.0.0.0
REACT_APP_API_URL: "/api/"
postgres1:
image: postgres
restart: always
env_file:
# NOTE: use gen_vars.sh in order to generate this file
- postgres-vars.env
volumes:
- mwdb-postgres1:/var/lib/postgresql/data
volumes:
mwdb-postgres1:
mwdb-uploads1: