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.ttt.yaml
More file actions
72 lines (67 loc) · 1.5 KB
/
compose.ttt.yaml
File metadata and controls
72 lines (67 loc) · 1.5 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
version: "3.8"
include:
- path: ./compose.base.dev.yaml
services:
ttt-service:
build:
context: .
dockerfile: ./apps/ttt-service/Dockerfile.dev
develop:
watch:
- action: sync
path: ./apps/ttt-service/src
target: /app/apps/ttt-service/src
ignore:
- node_modules/
- action: rebuild
path: package.json
depends_on:
- gateway
- ttt-db
environment:
DB_HOST: ttt-db
DB_PORT: 5432
DB_USER: ttt
DB_PW: ttt
DB_DB: ttt
GATEWAY_HOST: gateway
GATEWAY_PORT: 3000
PORT: 4031
SERVICE_KEY: ttt-service
WS_SERVICE_KEY: ttt-ws-service
WS_PORT: 8031
WS_PATH: /ttt
ports:
- 4031:4031
- 8031:8031
ttt-db:
image: postgres:alpine
restart: unless-stopped
environment:
POSTGRES_USER: ttt
POSTGRES_PASSWORD: ttt
POSTGRES_DB: ttt
ttt-web:
build:
context: .
dockerfile: ./apps/ttt-ui/Dockerfile.dev
develop:
watch:
- action: sync
path: ./apps/ttt-ui/src
target: /app/apps/ttt-ui/src
- action: sync
path: ./libs
target: /app/libs
- action: rebuild
path: package.json
depends_on:
- ttt-service
ports:
- 4200:4200
environment:
NX_TTT_SERVICE_KEY: ttt-service
NX_TTT_WS_SERVICE_KEY: ttt-ws-service
NX_GATEWAY_HOST: localhost
NX_GATEWAY_PORT: 3000
# TODO setup volume for db