Skip to content

Commit

Permalink
feat(ci/cd): ✨ try to add restart policy and change container names (…
Browse files Browse the repository at this point in the history
…#162)
  • Loading branch information
Magnus Alexander Strømseng authored and GitHub committed Mar 20, 2024
1 parent 22f8a3d commit 2abcd5b
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
version: "3.3"
services:
backend-app:
volumes:
- type: bind
source: /var/data/
target: /var/data/
build:
context: .
dockerfile: Dockerfile-backend
ports:
- "1337:1337"
environment:
- NODE_ENV=production
backend:
restart: unless-stopped
volumes:
- type: bind
source: /var/data/
target: /var/data/
build:
context: .
dockerfile: Dockerfile-backend
ports:
- "1337:1337"
environment:
- NODE_ENV=production

frontend-app:
build:
context: .
dockerfile: Dockerfile-frontend
ports:
- "3000:3000"
frontend:
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile-frontend
ports:
- "3000:3000"

0 comments on commit 2abcd5b

Please sign in to comment.