-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
65 lines (61 loc) · 1.29 KB
/
docker-compose.dev.yaml
File metadata and controls
65 lines (61 loc) · 1.29 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
services:
bot:
build:
context: .
dockerfile: Dockerfile.dev
container_name: bot-dev
restart: unless-stopped
networks:
- govd-network
env_file:
- .env
volumes:
- .:/app
ports:
- "${METRICS_PORT-}:8080"
- "${PROFILER_PORT-}:6060"
depends_on:
db:
condition: service_healthy
db:
image: postgres:latest
container_name: db-dev
restart: unless-stopped
environment:
POSTGRES_DB: govd
POSTGRES_USER: govd
POSTGRES_PASSWORD: password
volumes:
- db:/var/lib/postgresql
networks:
- govd-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U govd"]
interval: 3s
timeout: 5s
retries: 30
pgweb:
image: sosedoff/pgweb:latest
container_name: pgweb-dev
restart: unless-stopped
command: >
--bind=0.0.0.0
--url=postgres://govd:password@db:5432/govd?sslmode=disable
--log-level=error
environment:
PGWEB_AUTH_USER: ${PGWEB_USER:-admin}
PGWEB_AUTH_PASS: ${PGWEB_PASSWORD:-password}
ports:
- "${PGWEB_PORT:-8081}:8081"
networks:
- govd-network
depends_on:
db:
condition: service_healthy
volumes:
db:
go-build-cache:
go-mod-cache:
networks:
govd-network:
driver: bridge