docker: use images instead of build
This commit is contained in:
parent
4373ca4ba9
commit
090c794c24
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
|
21
compose.yaml
21
compose.yaml
@ -3,10 +3,6 @@ networks:
|
||||
maps-service-network:
|
||||
driver: bridge
|
||||
|
||||
secrets:
|
||||
netrc:
|
||||
file: /home/quat/.netrc
|
||||
|
||||
services:
|
||||
nats:
|
||||
image: docker.io/nats:latest
|
||||
@ -16,11 +12,8 @@ services:
|
||||
- maps-service-network
|
||||
|
||||
mapsservice:
|
||||
build:
|
||||
secrets:
|
||||
- netrc
|
||||
context: .
|
||||
dockerfile: Containerfile
|
||||
image:
|
||||
maps-service
|
||||
container_name: mapsservice
|
||||
command: [
|
||||
# debug
|
||||
@ -46,18 +39,16 @@ services:
|
||||
- "8082:8082"
|
||||
|
||||
web:
|
||||
build:
|
||||
context: web
|
||||
dockerfile: Containerfile
|
||||
image:
|
||||
maps-service-web
|
||||
networks:
|
||||
- maps-service-network
|
||||
ports:
|
||||
- "3000:3000"
|
||||
|
||||
validation:
|
||||
build:
|
||||
context: validation
|
||||
dockerfile: Containerfile
|
||||
image:
|
||||
maps-service-validation
|
||||
container_name: validation
|
||||
environment:
|
||||
- RBXCOOKIE=RBXCOOKIE
|
||||
|
Loading…
Reference in New Issue
Block a user