-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
58 lines (54 loc) · 1.14 KB
/
Copy pathdocker-compose.local.yml
File metadata and controls
58 lines (54 loc) · 1.14 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
networks:
default:
name: pgscope-local-net
postgres-net:
external: true
name: general-docker_dev-network
services:
backend:
build:
context: ./go
restart: unless-stopped
networks:
- default
- postgres-net
environment:
PGSCOPE_DATABASE_URL: ${PGSCOPE_DATABASE_URL}
PGSCOPE_API_KEY: ${PGSCOPE_API_KEY}
PGSCOPE_HTTP_PORT: 8090
PGSCOPE_POLL_INTERVAL_SECONDS: ${PGSCOPE_POLL_INTERVAL_SECONDS:-1}
PGSCOPE_HISTORY_DB_PATH: /data/pgscope.db
volumes:
- pgscope_history_local:/data
ports:
- "8090:8090"
mem_limit: 128m
mem_reservation: 64m
frontend:
build:
context: ./web
restart: unless-stopped
depends_on:
- backend
networks:
- default
ports:
- "8091:8091"
mem_limit: 96m
mem_reservation: 64m
nginx:
image: nginx:alpine
restart: unless-stopped
depends_on:
- backend
- frontend
networks:
- default
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "8080:80"
mem_limit: 32m
mem_reservation: 16m
volumes:
pgscope_history_local: