You've already forked golang-saas-starter-kit
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:
@ -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
|
||||
|
Reference in New Issue
Block a user