Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

Commit df44fab

Browse files
committed
Updated Docker compose stacks
1 parent e556c50 commit df44fab

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

docker-compose.coolify.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
services:
22
api:
3-
build:
4-
context: .
5-
dockerfile: ./services/api/Dockerfile
6-
container_name: swarmy-api
7-
restart: unless-stopped
3+
extends:
4+
file: docker-compose.yml
5+
service: api
6+
ports: []
87

98
web:
10-
build:
11-
context: .
12-
dockerfile: ./services/web/Dockerfile
13-
container_name: swarmy-web
14-
restart: unless-stopped
15-
depends_on:
16-
- api
9+
extends:
10+
file: docker-compose.yml
11+
service: web
12+
ports: []
1713
environment:
1814
- API_URL=$SERVICE_FQDN_API

docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
container_name: swarmy-api
77
restart: unless-stopped
88
ports:
9-
- 3000:3000
9+
- 4000:3000
1010

1111
web:
1212
build:
@@ -15,5 +15,7 @@ services:
1515
container_name: swarmy-web
1616
platform: linux/amd64
1717
restart: unless-stopped
18+
depends_on:
19+
- api
1820
ports:
19-
- 4321:4321
21+
- 3000:3000

0 commit comments

Comments
 (0)