Skip to content

Commit 42c0f67

Browse files
committed
add shipyard labels
1 parent ada7809 commit 42c0f67

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

08-running-containers/docker-compose.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ services:
1212
ports:
1313
- 5173:5173
1414
client-react-nginx:
15+
labels:
16+
shipyard.primary-route: true
17+
shipyard.route: '/'
1518
image: client-react-nginx
1619
build:
1720
context: ../05-example-web-application/client-react/
@@ -23,6 +26,8 @@ services:
2326
- 80:8080
2427
restart: unless-stopped
2528
api-node:
29+
labels:
30+
shipyard.route: '/api/node/'
2631
image: api-node
2732
build:
2833
context: ../05-example-web-application/api-node/
@@ -34,11 +39,13 @@ services:
3439
- DATABASE_URL=postgres://postgres:foobarbaz@db:5432/postgres
3540
networks:
3641
- frontend
37-
- backend
42+
- backend
3843
ports:
3944
- 3000:3000
4045
restart: unless-stopped
4146
api-golang:
47+
labels:
48+
shipyard.route: '/api/golang/'
4249
image: api-golang
4350
build:
4451
context: ../05-example-web-application/api-golang/
@@ -68,4 +75,4 @@ volumes:
6875
pgdata:
6976
networks:
7077
frontend:
71-
backend:
78+
backend:

0 commit comments

Comments
 (0)