-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.24 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
services:
postgres: &postgres
image: postgres:latest
container_name: postgres
environment:
PGPORT: 5432
POSTGRES_DB: "cipherstash"
POSTGRES_USER: "cipherstash"
PGUSER: "cipherstash"
POSTGRES_PASSWORD: 3ncryp7
ports:
- 5432:5432
networks:
- cipherstash
deploy:
resources:
limits:
cpus: "${CPU_LIMIT:-2}"
memory: 2048mb
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 5s
retries: 10
proxy:
image: cipherstash/proxy:latest
pull_policy: always
container_name: proxy
ports:
- 6432:6432
- 9930:9930
env_file:
- .env.proxy.docker
environment:
- CS_DATABASE__NAME=cipherstash
- CS_DATABASE__USERNAME=cipherstash
- CS_DATABASE__PASSWORD=3ncryp7
- CS_DATABASE__HOST=postgres
- CS_DATABASE__PORT=5432
- CS_PROMETHEUS__ENABLED=${CS_PROMETHEUS__ENABLED:-true}
- CS_DATABASE__INSTALL_EQL=true # install EQL into the PostgreSQL database
- CS_DATABASE__INSTALL_EXAMPLE_SCHEMA=true # install example schema into the PostgreSQL database
networks:
- cipherstash
networks:
cipherstash:
driver: bridge