Repository navigation
Expand file tree
/
Copy pathdocker-compose.local-st.yml
More file actions
75 lines (71 loc) · 1.89 KB
/
Copy pathdocker-compose.local-st.yml
File metadata and controls
75 lines (71 loc) · 1.89 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
66
67
68
69
70
71
72
73
74
75
services:
db:
image: postgres:16.3
container_name: harp-dev-db
restart: unless-stopped
environment:
POSTGRES_DB: portal
POSTGRES_USER: admin
POSTGRES_PASSWORD: adminpassword
volumes:
- dev-db-data:/var/lib/postgresql/data
- ./scripts/init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U admin -d portal"]
interval: 5s
timeout: 3s
retries: 5
supertokens:
image: registry.supertokens.io/supertokens/supertokens-postgresql:11.4.5
container_name: harp-dev-supertokens
depends_on:
db:
condition: service_healthy
environment:
POSTGRESQL_CONNECTION_URI: "postgresql://admin:adminpassword@db:5432/supertokens"
API_KEYS: "dev-api-key-that-is-long-enough"
ports:
- "3567:3567"
go-dev:
container_name: harp-dev-backend
build:
context: "./"
dockerfile: dev.Dockerfile
depends_on:
db:
condition: service_healthy
supertokens:
condition: service_started
environment:
- DB_ADDR=postgres://admin:adminpassword@db:5432/portal?sslmode=disable
- SUPERTOKENS_CONNECTION_URI=http://supertokens:3567
- SUPERTOKENS_API_KEY=dev-api-key-that-is-long-enough
- AUTH_BASIC_USER=admin
- AUTH_BASIC_PASS=admin
- APP_URL=http://localhost:8080
- FRONTEND_URL=http://localhost:3000
- ENV=development
ports:
- "8080:8080"
volumes:
- ./:/app
- go-mod-cache:/go/pkg/mod
node-dev:
container_name: harp-dev-frontend
depends_on:
- go-dev
build:
context: "./client/portal"
dockerfile: dev.Dockerfile
environment:
- API_PROXY_TARGET=http://go-dev:8080
ports:
- "3000:3000"
volumes:
- ./client/portal:/app
- /app/node_modules
volumes:
dev-db-data:
go-mod-cache: