Skip to content

Commit

Permalink
chore(compose): add prod and override compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
guilbep committed Sep 26, 2023
1 parent abe081b commit f1144b7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ jobs:
with:
context: ${{ matrix.context }}
push: true
build-args: |
"API_PATH=${{ secrets.API_PATH }}"
"API_URL=${{ secrets.API_URL }}"
file: ${{ matrix.dockerfile }}
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }},${{ github.sha }},latest
platforms: linux/amd64,linux/arm64
labels: ${{ steps.meta.outputs.labels }}
7 changes: 7 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: "3.9"
services:
backend:
build: ./backend
image: !reset null
ports:
- '3030:3030'
7 changes: 7 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: "3.9"
services:
backend:
image: ghcr.io/epfl-enac/backend:feat-build-and-publish.yml
restart: always
ports:
- "3030:3030"
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ services:
- "traefik.http.middlewares.admin-middleware.stripprefix.prefixes=/admin"
restart: unless-stopped
backend:
image: ghcr.io/epfl-enac/backend:feat-build-and-publish.yml
image: ghcr.io/epfl-enac/backend:latest
environment:
- API_PATH=${API_PATH}
- DATABASE_URL=${DATABASE_URL}
Expand Down Expand Up @@ -143,5 +143,5 @@ services:
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
couchdb_data:
postgres:
driver: local

0 comments on commit f1144b7

Please sign in to comment.