Skip to content

Commit bfd3352

Browse files
committed
WIP DO runner
1 parent 69fc920 commit bfd3352

File tree

6 files changed

+10
-2
lines changed

6 files changed

+10
-2
lines changed
File renamed without changes.

.github/workflows/simple.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@main
1616

1717
- name: Create .env
18-
run: echo 'PORT=${{ secrets.PORT }}' > .env
18+
run: echo 'PORT=${{ secrets.CLIENT_PORT }}' > .env
1919

2020
- name: Run build
2121
run: docker-compose up -d

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ Stubbing out and documenting FastAPI, VueJS 3 and Docker workflow.
2727
- [ ] Create user
2828
- adduser larry
2929
- adduser larry sudo
30+
- or usermod -aG sudo larry?
3031
- sudo su - larry
32+
- verify docker group exists
33+
- cat /etc/group
34+
- as root: add user to docker group
35+
- sudo usermod -aG docker larry
3136
- [ ] Github runner
3237
- Nice
38+
- [Automatically Deploy Docker + Wordpress To Digitalocean With Github Actions - CI&CD](https://youtu.be/-nT1Xs7-qqA?t=1225)
3339
- [Deploying Self-hosted Runners for GitHub Actions](https://www.youtube.com/watch?v=G6nBM3NxBDc)
3440
- [Deploying to Digitalocean](https://stackabuse.com/deploying-a-node-js-app-to-a-digitalocean-droplet-with-docker/)
3541
- [github actions](https://github.com/LarryEitel/fastapi-vue3-docker-workflow/settings/actions)

crib.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ alias db='docker build'
1919
alias dbsw='winpty docker run --rm -it --volumes-from sug-application sug-workspace bash'
2020
alias dc='docker-compose'
2121
alias dcb='docker-compose build'
22+
alias dcd='docker-compose down'
2223
alias dcl='docker-compose logs'
2324
alias dcleandkx='dcleandkxfunction'
2425
alias dcp='docker-compose ps'

frontend/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PORT=8080

frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ COPY . .
1515
RUN ls
1616
RUN ls ./src
1717

18-
EXPOSE 8080
18+
EXPOSE "${PORT:-8080}:80"
1919

2020
CMD ["yarn", "serve"]

0 commit comments

Comments
 (0)