1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-08-08 22:36:41 +02:00

issue#19 recompile service on file change

Updated web-app and web-api to auto build the service when running with
docker-compose.
This commit is contained in:
Lee Brown
2019-08-12 12:30:35 -08:00
parent e4094d87c8
commit 2e43f95748
8 changed files with 66 additions and 36 deletions

View File

@ -2,7 +2,7 @@
# docker-compose up
# docker-compose stop
# docker-compose down
version: '3'
version: '3.7'
networks:
main:
@ -63,9 +63,12 @@ services:
image: example-project/web-app:latest
build:
context: .
target: dev
dockerfile: cmd/web-app/Dockerfile
args:
service: 'web-app'
volumes:
- ./:/go/src/gitlab.com/geeks-accelerator/oss/saas-starter-kit
ports:
- 3000:3000 # WEB APP
- 4000:4000 # DEBUG API
@ -99,9 +102,12 @@ services:
image: example-project/web-api:latest
build:
context: .
target: dev
dockerfile: cmd/web-api/Dockerfile
args:
service: 'web-api'
volumes:
- ./:/go/src/gitlab.com/geeks-accelerator/oss/saas-starter-kit
ports:
- 3001:3001 # WEB API
- 4001:4001 # DEBUG API