Add initial docker-compose
This commit is contained in:
parent
115bc6bc27
commit
3d99843135
21
.drone.yml
21
.drone.yml
|
@ -3,7 +3,7 @@ type: docker
|
||||||
name: deploy
|
name: deploy
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# GO api
|
# GO api
|
||||||
- name: build_api
|
- name: build_api
|
||||||
image: golang
|
image: golang
|
||||||
environment:
|
environment:
|
||||||
|
@ -11,34 +11,35 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- cd Api
|
- cd Api
|
||||||
- go build
|
- go build
|
||||||
# Platformio esp firmware
|
# Platformio esp firmware
|
||||||
# - name: build_esp
|
# - name: build_esp
|
||||||
# C# frontend
|
# C# frontend
|
||||||
# upload docker
|
# upload docker
|
||||||
- name: upload_frontend
|
- name: upload_frontend
|
||||||
|
image: plugins/docker
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
settings:
|
settings:
|
||||||
dockerfile: ManagementPage/ManagementPage/Dockerfile
|
dockerfile: ManagementPage/ManagementPage/Dockerfile
|
||||||
repo: "registry.jacknet.io/51m0n/environment-api"
|
repo: "registry.jacknet.io/51m0n/environment-api"
|
||||||
username: simon
|
username: simon
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
registry: registry.jacknet.io
|
registry: registry.jacknet.io
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
# upload docker
|
# upload docker
|
||||||
- name: upload_api
|
- name: upload_api
|
||||||
depends_on:
|
depends_on:
|
||||||
- build_api
|
- build_api
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
settings:
|
settings:
|
||||||
context: Api
|
context: Api
|
||||||
dockerfile: Api/Dockerfile
|
dockerfile: Api/Dockerfile
|
||||||
repo: "registry.jacknet.io/51m0n/environment-api"
|
repo: "registry.jacknet.io/51m0n/environment-api"
|
||||||
username: simon
|
username: simon
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
version: "3.4"
|
||||||
|
services:
|
||||||
|
frontend:
|
||||||
|
image: registry.jacknet.io/51m0n/environment-frontend:latest
|
||||||
|
|
||||||
|
database:
|
||||||
|
image: mongodb:latest
|
||||||
|
|
||||||
|
apiserver:
|
||||||
|
image: registry.jacknet.io/51m0n/environment-api:latest
|
||||||
|
|
||||||
|
proxy:
|
||||||
|
image: nginx:latest
|
||||||
|
|
Loading…
Reference in New Issue