-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
63 lines (60 loc) · 1.56 KB
/
docker-compose.dev.yml
File metadata and controls
63 lines (60 loc) · 1.56 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
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
go-dev:
container_name: harp-dev-backend
build:
context: "./"
dockerfile: dev.Dockerfile
depends_on:
db:
condition: service_healthy
environment:
- DB_ADDR=postgres://admin:adminpassword@db:5432/portal?sslmode=disable
- SUPERTOKENS_CONNECTION_URI=${SUPERTOKENS_CONNECTION_URI}
- SUPERTOKENS_API_KEY=${SUPERTOKENS_API_KEY}
- AUTH_BASIC_USER=admin
- AUTH_BASIC_PASS=admin
- APP_URL=http://localhost:8080
- FRONTEND_URL=http://localhost:3000
- ENV=development
- GOOGLE_CLIENT_ID=your-google-client-id
- GOOGLE_CLIENT_SECRET=your-google-client-secret
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/web"
dockerfile: dev.Dockerfile
environment:
- API_PROXY_TARGET=http://go-dev:8080
ports:
- "3000:3000"
volumes:
- ./client/web:/app
- /app/node_modules
volumes:
dev-db-data:
go-mod-cache: