Skip to content

Commit

Permalink
make an example docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeBu committed Mar 8, 2024
1 parent 24edacd commit 2c1092e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
node_modules
.turbo
.env
8 changes: 0 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,3 @@ COPY --from=build /app/web/nginx.conf /etc/nginx/conf.d/default.conf
WORKDIR /usr/share/nginx
COPY --from=build /app/web ./html
ENTRYPOINT sh -c "nginx -g 'daemon off;'"








16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: "3.8"
services:
api:
build:
context: "."
dockerfile: Dockerfile
target: api
env_file: .env
restart: unless-stopped

web:
build:
context: "."
dockerfile: Dockerfile
target: web
restart: unless-stopped

0 comments on commit 2c1092e

Please sign in to comment.