@@ -2,26 +2,26 @@ services:
22 frontend :
33 container_name : frontend
44 build :
5- dockerfile : ../development/frontend/Dockerfile
6- context : ../../teleport
7- working_dir : ${VITE_CONFIG_DIRECTORY}
8- command : pnpm start
5+ dockerfile : development/frontend/Dockerfile
6+ context : ../../
7+ target : node-dependencies
8+ working_dir : /app/web
9+ command : yarn start
910 networks :
1011 - teleport
1112 ports :
1213 - 443:3000
1314 volumes :
14- - ../../teleport/web/:/app/web/
15- - ../../teleport/gen/proto/ts/:/app/gen/proto/ts/
16- - ../../teleport/e/web/:/app/e/web/
17- - ../../teleport/lib/srv/desktop/rdp/rdpclient/:/app/lib/srv/desktop/rdp/rdpclient
15+ - ../../access-graph/web:/app/web
16+ - ../../access-graph/teleport:/app/teleport
1817 - ../certs:/app/certs:ro
19- - /usr/local/cargo
18+ - ../data/cache/frontend:/webpack/cache:rw,delegated
2019 environment :
2120 NODE_OPTIONS : --max-old-space-size=8192
2221 PROXY_TARGET : go.teleport:443
2322 VITE_HTTPS_CERT : /app/certs/server.crt
2423 VITE_HTTPS_KEY : /app/certs/server.key
24+ POLY_API_KEY : HvMA3rfToChIPdffmVTJin92c8YpHRQ3
2525
2626 node :
2727 build :
@@ -30,8 +30,6 @@ services:
3030 target : static
3131 args :
3232 TOOL_FOLDER : ${TOOL_FOLDER}
33- volumes :
34- - /var/lib/teleport
3533 networks :
3634 - teleport
3735
@@ -68,6 +66,50 @@ services:
6866 - ../build/.air.toml:/app/.air.toml
6967 - ../teleport/teleport.yaml:/etc/teleport.yaml
7068 - ${LICENSE_FILE}:/etc/license.pem
69+ - ../../access-graph/keys/ca.crt:/etc/access-graph/keys/ca.crt
70+ environment :
71+ TELEPORT_UNSTABLE_VC_SYNC_ON_START : yes
72+ TELEPORT_ALLOW_NO_SECOND_FACTOR : yes
73+ TELEPORT_UNSTABLE_SKIP_VERSION_UPGRADE_CHECK : yes
74+ deploy :
75+ resources :
76+ limits :
77+ memory : 48G
78+
79+ access-graph :
80+ build :
81+ context : ../..
82+ dockerfile : development/accessgraph/Dockerfile
83+ command :
84+ - --build.cmd
85+ - " go build -o tmp/tag ./cmd/tag/main.go"
86+ ports :
87+ - 50051:50051
88+ volumes :
89+ - ../accessgraph/config.yaml:/app/config.yaml
90+ - ../../access-graph:/app
91+ - ../accessgraph/.air.toml:/app/.air.toml
92+ - /go/pkg/mod
93+ - /root/.cache/go-build
94+ networks :
95+ - teleport
96+
97+ db :
98+ build :
99+ context : ../..
100+ dockerfile : development/postgres/Dockerfile
101+ restart : always
102+ shm_size : 256m
103+ ports :
104+ - 5434:5432
105+ volumes :
106+ - /var/lib/postgresql/data
107+ environment :
108+ POSTGRES_USER : postgres
109+ POSTGRES_PASSWORD : localpass
110+ POSTGRES_DB : postgres
111+ networks :
112+ - teleport
71113
72114networks :
73115 teleport :
0 commit comments