Skip to content

Commit

Permalink
Updated Docker compose stacks
Browse files Browse the repository at this point in the history
  • Loading branch information
NuroDev committed Jul 20, 2024
1 parent e556c50 commit df44fab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
20 changes: 8 additions & 12 deletions docker-compose.coolify.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
services:
api:
build:
context: .
dockerfile: ./services/api/Dockerfile
container_name: swarmy-api
restart: unless-stopped
extends:
file: docker-compose.yml
service: api
ports: []

web:
build:
context: .
dockerfile: ./services/web/Dockerfile
container_name: swarmy-web
restart: unless-stopped
depends_on:
- api
extends:
file: docker-compose.yml
service: web
ports: []
environment:
- API_URL=$SERVICE_FQDN_API
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
container_name: swarmy-api
restart: unless-stopped
ports:
- 3000:3000
- 4000:3000

web:
build:
Expand All @@ -15,5 +15,7 @@ services:
container_name: swarmy-web
platform: linux/amd64
restart: unless-stopped
depends_on:
- api
ports:
- 4321:4321
- 3000:3000

0 comments on commit df44fab

Please sign in to comment.