1. Modified docker-compose.yaml to make it as compose file for prod containers
2. Created docker-compose.debug.yaml from docker-compose.yaml, for devdocker-dev-guide_3-multistage
parent
939816c343
commit
7e9b19b3e4
|
@ -0,0 +1,62 @@
|
||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
csharp:
|
||||||
|
container_name: csharp # image name
|
||||||
|
image: cruxlight/csharp_sdk:1.0.0
|
||||||
|
build:
|
||||||
|
context: ./c#
|
||||||
|
target: dev
|
||||||
|
working_dir: /work
|
||||||
|
entrypoint: /bin/sh
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
|
volumes:
|
||||||
|
- ./c#/src/:/work
|
||||||
|
ports:
|
||||||
|
- 5500:5000
|
||||||
|
golang:
|
||||||
|
container_name: golang
|
||||||
|
image: cruxlight/golang_sdk:1.0.0
|
||||||
|
build:
|
||||||
|
context: ./golang
|
||||||
|
target: dev
|
||||||
|
working_dir: /work
|
||||||
|
entrypoint: /bin/sh
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
|
volumes:
|
||||||
|
- ./golang/src/:/work
|
||||||
|
ports:
|
||||||
|
- 5501:5000
|
||||||
|
nodejs:
|
||||||
|
container_name: nodejs
|
||||||
|
image: cruxlight/nodejs:1.0.0
|
||||||
|
build:
|
||||||
|
context: ./nodejs
|
||||||
|
target: dev
|
||||||
|
working_dir: /work
|
||||||
|
entrypoint: /bin/sh
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
|
volumes:
|
||||||
|
- ./nodejs/src/:/work
|
||||||
|
ports:
|
||||||
|
- 5502:5000
|
||||||
|
python: #docker run -it -v ${PWD}:/work -w /work -p 5003:5000 aimvector/python:1.0.0 /bin/sh
|
||||||
|
container_name: python
|
||||||
|
image: cruxlight/python:1.0.0
|
||||||
|
build:
|
||||||
|
context: ./python
|
||||||
|
target: dev
|
||||||
|
working_dir: /work
|
||||||
|
entrypoint: /bin/sh
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
|
volumes:
|
||||||
|
- ./python/src/:/work
|
||||||
|
ports:
|
||||||
|
- 5503:5000
|
||||||
|
first-public-dockerhub-image:
|
||||||
|
container_name: first-public-dockerhub-image
|
||||||
|
image: cruxlight/first-public-dockerhub-image:latest
|
||||||
|
build: ./first-public-dockerhub-image
|
|
@ -4,11 +4,8 @@ services:
|
||||||
container_name: csharp # image name
|
container_name: csharp # image name
|
||||||
image: cruxlight/csharp_sdk:1.0.0
|
image: cruxlight/csharp_sdk:1.0.0
|
||||||
build:
|
build:
|
||||||
context: ./c#
|
context: ./c#
|
||||||
working_dir: /work
|
target: prod
|
||||||
entrypoint: /bin/sh
|
|
||||||
stdin_open: true
|
|
||||||
tty: true
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./c#/src/:/work
|
- ./c#/src/:/work
|
||||||
ports:
|
ports:
|
||||||
|
@ -16,11 +13,9 @@ services:
|
||||||
golang:
|
golang:
|
||||||
container_name: golang
|
container_name: golang
|
||||||
image: cruxlight/golang_sdk:1.0.0
|
image: cruxlight/golang_sdk:1.0.0
|
||||||
build: ./golang
|
build:
|
||||||
working_dir: /work
|
context: ./golang
|
||||||
entrypoint: /bin/sh
|
target: prod
|
||||||
stdin_open: true
|
|
||||||
tty: true
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./golang/src/:/work
|
- ./golang/src/:/work
|
||||||
ports:
|
ports:
|
||||||
|
@ -28,11 +23,9 @@ services:
|
||||||
nodejs:
|
nodejs:
|
||||||
container_name: nodejs
|
container_name: nodejs
|
||||||
image: cruxlight/nodejs:1.0.0
|
image: cruxlight/nodejs:1.0.0
|
||||||
build: ./nodejs
|
build:
|
||||||
working_dir: /work
|
context: ./nodejs
|
||||||
entrypoint: /bin/sh
|
target: prod
|
||||||
stdin_open: true
|
|
||||||
tty: true
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./nodejs/src/:/work
|
- ./nodejs/src/:/work
|
||||||
ports:
|
ports:
|
||||||
|
@ -40,11 +33,9 @@ services:
|
||||||
python: #docker run -it -v ${PWD}:/work -w /work -p 5003:5000 aimvector/python:1.0.0 /bin/sh
|
python: #docker run -it -v ${PWD}:/work -w /work -p 5003:5000 aimvector/python:1.0.0 /bin/sh
|
||||||
container_name: python
|
container_name: python
|
||||||
image: cruxlight/python:1.0.0
|
image: cruxlight/python:1.0.0
|
||||||
build: ./python
|
build:
|
||||||
working_dir: /work
|
context: ./python
|
||||||
entrypoint: /bin/sh
|
target: prod
|
||||||
stdin_open: true
|
|
||||||
tty: true
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./python/src/:/work
|
- ./python/src/:/work
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in New Issue