File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 5252 run : |
5353 docker stop ceramicraft-user-mservice || true
5454 docker rm ceramicraft-user-mservice || true
55- docker run -d --name ceramicraft-user-mservice --network ceramicraft-network -p 8080:8080 "${DOCKER_HUB_USERNAME}/ceramicraft-user-mservice:${{ github.event.inputs.version }}"
55+ docker run -d --name ceramicraft-user-mservice --network ceramicraft-network -e MYSQL_PASSWORD=${{ secrets.MYSQL_PASSWORD }} - p 8080:8080 "${DOCKER_HUB_USERNAME}/ceramicraft-user-mservice:${{ github.event.inputs.version }}"
5656 restart :
5757 if : ${{ github.event.inputs.command == 'restart' }}
5858 runs-on : self-hosted
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ RUN go build -ldflags="-s -w" -o main main.go
1818
1919# Create a non-root user and set permissions
2020RUN useradd -m appuser && \
21- mkdir -p log && \
21+ mkdir -p logs && \
2222 chown -R appuser:appuser config/ && \
23- chown -R appuser:appuser log / && \
23+ chown -R appuser:appuser logs / && \
2424 chmod +r config/* && \
25- chmod +w log && \
25+ chmod +w logs && \
2626 chmod +x main
2727
2828EXPOSE 8080
Original file line number Diff line number Diff line change 1010
1111log :
1212 level : debug
13- file_path : ./logs/user-server .log
13+ file_path : ./logs/ceramicraft- user-mservice .log
1414
1515mysql :
1616 host : " mysql-container"
You can’t perform that action at this time.
0 commit comments