@@ -2,21 +2,19 @@ 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
2018 environment :
2119 NODE_OPTIONS : --max-old-space-size=8192
2220 PROXY_TARGET : go.teleport:443
@@ -30,8 +28,6 @@ services:
3028 target : static
3129 args :
3230 TOOL_FOLDER : ${TOOL_FOLDER}
33- volumes :
34- - /var/lib/teleport
3531 networks :
3632 - teleport
3733
@@ -68,6 +64,50 @@ services:
6864 - ../build/.air.toml:/app/.air.toml
6965 - ../teleport/teleport.yaml:/etc/teleport.yaml
7066 - ${LICENSE_FILE}:/etc/license.pem
67+ - ../../access-graph/keys/ca.crt:/etc/access-graph/keys/ca.crt
68+ environment :
69+ TELEPORT_UNSTABLE_VC_SYNC_ON_START : yes
70+ TELEPORT_ALLOW_NO_SECOND_FACTOR : yes
71+ TELEPORT_UNSTABLE_SKIP_VERSION_UPGRADE_CHECK : yes
72+ deploy :
73+ resources :
74+ limits :
75+ memory : 48G
76+
77+ access-graph :
78+ build :
79+ context : ../..
80+ dockerfile : development/accessgraph/Dockerfile
81+ command :
82+ - --build.cmd
83+ - " go build -o tmp/tag ./cmd/tag/main.go"
84+ ports :
85+ - 50051:50051
86+ volumes :
87+ - ../accessgraph/config.yaml:/app/config.yaml
88+ - ../../access-graph:/app
89+ - ../accessgraph/.air.toml:/app/.air.toml
90+ - /go/pkg/mod
91+ - /root/.cache/go-build
92+ networks :
93+ - teleport
94+
95+ db :
96+ build :
97+ context : ../..
98+ dockerfile : development/postgres/Dockerfile
99+ restart : always
100+ shm_size : 256m
101+ ports :
102+ - 5434:5432
103+ volumes :
104+ - /var/lib/postgresql/data
105+ environment :
106+ POSTGRES_USER : postgres
107+ POSTGRES_PASSWORD : localpass
108+ POSTGRES_DB : postgres
109+ networks :
110+ - teleport
71111
72112networks :
73113 teleport :
0 commit comments