This repository was archived by the owner on Jan 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.base.dev.yaml
More file actions
73 lines (69 loc) · 1.51 KB
/
compose.base.dev.yaml
File metadata and controls
73 lines (69 loc) · 1.51 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
services:
gateway:
build:
context: .
dockerfile: ./apps/api-gateway/Dockerfile.dev
depends_on:
- gateway-db
develop:
watch:
- action: sync
path: ./apps/api-gateway/src
target: /app/apps/api-gateway/src
ignore:
- node_modules/
- action: rebuild
path: package.json
ports:
- 3000:3000
- 3001:3001
- 3002:3002
environment:
DB_HOST: gateway-db
DB_PORT: 5432
DB_USER: gateway
DB_PW: gateway
DB_DB: gateway
PORT: 3000
WS_PORT: 3001
WS_PROXY_PORT: 3002
gateway-db:
image: postgres:alpine
restart: unless-stopped
environment:
POSTGRES_USER: gateway
POSTGRES_PASSWORD: gateway
POSTGRES_DB: gateway
auth-service:
build:
context: .
dockerfile: ./apps/auth-service/Dockerfile.dev
depends_on:
- pg
- gateway
develop:
watch:
- action: sync
path: ./apps/auth-service/src
target: /app/apps/auth-service/src
ignore:
- node_modules/
- action: rebuild
path: package.json
environment:
PG_HOST: pg
PG_PORT: 5432
PG_USER: test
PG_PW: test
PG_DB: auth
GATEWAY_HOST: gateway
GATEWAY_PORT: 3000
PORT: 3010
pg:
image: postgres:alpine
restart: unless-stopped
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: auth
# TODO setup volume for db