-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-local.yaml
53 lines (50 loc) · 1.12 KB
/
docker-compose-local.yaml
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
version: '3.8'
services:
db:
image: postgres:15
environment:
POSTGRES_DB: squid
POSTGRES_PASSWORD: postgres
healthcheck:
test: ['CMD-SHELL', 'pg_isready -d squid']
interval: 5s
timeout: 5s
retries: 5
# Uncomment for logging all SQL statements
# command: ["postgres", "-c", "log_statement=all"]
api:
build:
context: .
dockerfile: Dockerfile
container_name: giveconomy-monitor
env_file:
- .env
environment:
- DB_NAME=squid
- DB_PORT=5432
- DB_HOST=db
- DB_PASS=postgres
- GQL_PORT=4350
ports:
# GraphQL endpoint at port 4350
- '4350:4350'
command: ['sqd', 'run', '.']
depends_on:
db:
condition: service_healthy
# processor:
# image: my-squid
# env_file:
# - .env
# environment:
# - DB_NAME=squid
# - DB_PORT=5432
# - DB_HOST=db
# - DB_PASS=postgres
# ports:
# # prometheus metrics exposed at port 3000
# - '3000:3000'
# command: ['sqd', 'process:prod']
# depends_on:
# db:
# condition: service_healthy