docker: use images instead of build
This commit is contained in:
parent
4373ca4ba9
commit
4b9350747a
8
Makefile
Normal file
8
Makefile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
.PHONY: maps-service web validation
|
||||||
|
maps-service:
|
||||||
|
DOCKER_BUILDKIT=1 docker build . -f Containerfile -t maps-service \
|
||||||
|
--secret id=netrc,src=/home/quat/.netrc
|
||||||
|
web:
|
||||||
|
docker build web -f web/Containerfile -t maps-service-web
|
||||||
|
validation:
|
||||||
|
docker build validation -f validation/Containerfile -t maps-service-validation
|
17
compose.yaml
17
compose.yaml
@ -16,11 +16,8 @@ services:
|
|||||||
- maps-service-network
|
- maps-service-network
|
||||||
|
|
||||||
mapsservice:
|
mapsservice:
|
||||||
build:
|
image:
|
||||||
secrets:
|
maps-service
|
||||||
- netrc
|
|
||||||
context: .
|
|
||||||
dockerfile: Containerfile
|
|
||||||
container_name: mapsservice
|
container_name: mapsservice
|
||||||
command: [
|
command: [
|
||||||
# debug
|
# debug
|
||||||
@ -46,18 +43,16 @@ services:
|
|||||||
- "8082:8082"
|
- "8082:8082"
|
||||||
|
|
||||||
web:
|
web:
|
||||||
build:
|
image:
|
||||||
context: web
|
maps-service-web
|
||||||
dockerfile: Containerfile
|
|
||||||
networks:
|
networks:
|
||||||
- maps-service-network
|
- maps-service-network
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
|
|
||||||
validation:
|
validation:
|
||||||
build:
|
image:
|
||||||
context: validation
|
maps-service-validation
|
||||||
dockerfile: Containerfile
|
|
||||||
container_name: validation
|
container_name: validation
|
||||||
environment:
|
environment:
|
||||||
- RBXCOOKIE=RBXCOOKIE
|
- RBXCOOKIE=RBXCOOKIE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user