Skip to content

Commit

Permalink
feat: dedicated Docker Compose for staging
Browse files Browse the repository at this point in the history
  • Loading branch information
mvegter committed May 17, 2020
1 parent 28fc0be commit 3dec5cf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ jobs:
-f docker-compose.yml \
-f docker-compose.dev.yml \
config --quiet
- name: Validate docker-compose.staging.yml
run: |
docker-compose \
-f docker-compose.yml \
-f docker-compose.staging.yml \
config --quiet
- name: Validate docker-compose.test.yml
run: |
docker-compose \
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "3.7"

services:
application:
ports:
- "80:4000"

database:
ports:
- "3306:3306"
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ services:
- "./scripts:/opt"
links:
- database
ports:
- "80:4000"
environment:
- NODE_ENV=production
- DATABASE_HOST=database
Expand Down

0 comments on commit 3dec5cf

Please sign in to comment.