-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.production.yml
45 lines (44 loc) · 1.39 KB
/
docker-compose.production.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
version: '2'
services:
postgres:
image: postgres:14
environment:
POSTGRES_PASSWORD: testing
volumes:
- ./state/postgres/data:/var/lib/postgresql/data
opensearch-node1:
image: opensearchproject/opensearch:2.1.0
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch-node1
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_INSTALL_DEMO_CONFIG=true"
- "DISABLE_SECURITY_PLUGIN=true"
- "discovery.type=single-node"
volumes:
- ./state/opensearch/data:/usr/share/opensearch/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 30s
timeout: 10s
retries: 5
server:
depends_on:
opensearch-node1:
condition: service_healthy
image: gitlab.futo.org:5050/polycentric/polycentric
read_only: true
environment:
- "RUST_LOG=server=info"
- "STATSD_ADDRESS=127.0.0.1"
- "ADMIN_TOKEN=123"
proxy:
image: caddy
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./state/caddy/data:/data
- ./state/caddy/config:/config
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"