forked from omahs/quantizr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdc-dev.yaml
More file actions
146 lines (125 loc) · 4.88 KB
/
Copy pathdc-dev.yaml
File metadata and controls
146 lines (125 loc) · 4.88 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
version: '3.7'
services:
mongo-dev:
image: mongo:4.0
hostname: mongo-host-dev
networks:
bridge:
aliases:
- mongo-host-dev
volumes:
- '${MONGO_BASE}/mongodb-data-dev:/data/db'
- '${MONGOD_CONF}:/etc/mongod.conf'
command: mongod --config /etc/mongod.conf
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: ${mongoPassword}
# ipfs-dev:
# # https://hub.docker.com/r/ipfs/kubo/
# image: ipfs/kubo:release
# hostname: ipfs-host-dev
# networks:
# bridge:
# aliases:
# - ipfs-host-dev
# deploy:
# resources:
# limits:
# # Give docker 10% of CPU and 1 GB max
# cpus: "0.1"
# memory: 1000M
# # reservations:
# # cpus: 0.25
# # memory: 128M
# environment:
# # IPFS_PROFILE options (lowpower | server)
# IPFS_PROFILE: "server"
# IPFS_PATH: "/data/ipfs"
# volumes:
# - '${ipfs_staging}:/export'
# - '${ipfs_data}:/data/ipfs'
# ports:
# # Allow this thru your firewall: sudo ufw allow 4001
# - "4001:4001"
# - "4001:4001/udp"
quanta-dev:
image: ${DOCKER_IMAGE}
build:
context: .
args:
PORT: "${PORT}"
PORT_DEBUG: "${PORT_DEBUG}"
JAR_FILE: "${JAR_FILE}"
XMS: "${XMS}"
XMX: "${XMX}"
dockerfile: ./dockerfile
hostname: quanta-host
networks:
bridge:
aliases:
- quanta-host
volumes:
- '${QUANTA_BASE}/tmp:/tmp'
- '${QUANTA_BASE}/log:/log'
- '${QUANTA_BASE}/config:/config'
- '${QUANTA_BASE}/lucene:/subnode-lucene'
- '${PRJROOT}/src/main/resources/public:/dev-resource-base'
- '${PRJROOT}/target/classes:/loader-path'
ports:
- '${HOST_PORT}:${PORT}'
- '${PORT_DEBUG}:${PORT_DEBUG}'
environment:
logging.config: /log/logback.xml
XMS: "${XMS}"
XMX: "${XMX}"
# Can be a comma-delimited list of TestIntf-derived tests to run
# examples are "LangTest,UtilsTest,MongoTest,MongoFediverseNamesTest,IPFSTest"
# **** Tip ****: remember to put this line in setenv-dev.sh if running IPFS tests: `export ipfsEnabled="true"`
runTests:
adminPassword: "${adminPassword}"
mongoPassword: "${mongoPassword}"
mongoSecurity: "true"
# WARNING: Most browsers (other than Firefox) will not support crypto unless you're on HTTPS
# requireCrypto: "true"
# NOTE: '>-' removes all newline characters and makes one long string
# Using '|' there instead would preserve the newlines after read in
# The '-' after either of those removes any trailing newline
testUserAccounts: >-
FollowBot:${adminPassword}:${devEmail},
adam:${testPassword}:${devEmail},
bob:${testPassword}:${devEmail},
cory:${testPassword}:${devEmail},
dan:${testPassword}:${devEmail},
eric:${testPassword}:${devEmail}
testPassword: "${testPassword}"
throttleTime: "0"
spring.config.location: "classpath:/application.properties"
mongodb.host: "${MONGO_HOST}"
mongodb.port: "${MONGO_PORT}"
instanceId: "dev"
profileName: "dev"
server.port: "${PORT}"
httpProtocol: "http"
metaHost: "${quanta_domain}"
allowFileSystemSearch: "false"
actPubEnabled: "false"
ipfsEnabled: "${ipfsEnabled}"
spring.http.multipart.max-file-size: "200MB"
spring.http.multipart.max-request-size: "200MB"
spring.servlet.multipart.max-file-size: "200MB"
spring.servlet.multipart.max-request-size: "200MB"
adminDataFolder: "/tmp"
mail.port: ""
mail.user: "postmaster@quantizr.com"
mail.password: "${emailPassword}"
mail.host: "smtp.mailgun.org"
mail.from: "admin@quanta.wiki"
JAVA_TOOL_OPTIONS: "-agentlib:jdwp=transport=dt_socket,address=0.0.0.0:${PORT_DEBUG},server=y,suspend=n"
ipfs.host: "http://ipfs-host-dev"
ipfs.apiPort: "5001"
ipfs.gatewayPort: "8080"
depends_on:
- mongo-dev
# - ipfs-dev
networks:
bridge: