Add initial docker-compose

This commit is contained in:
Simon 2021-10-02 02:34:56 +01:00
parent 115bc6bc27
commit 3d99843135
2 changed files with 26 additions and 11 deletions

View File

@ -3,7 +3,7 @@ type: docker
name: deploy
steps:
# GO api
# GO api
- name: build_api
image: golang
environment:
@ -11,38 +11,39 @@ steps:
commands:
- cd Api
- go build
# Platformio esp firmware
# - name: build_esp
# C# frontend
# upload docker
# Platformio esp firmware
# - name: build_esp
# C# frontend
# upload docker
- name: upload_frontend
image: plugins/docker
when:
branch:
- master
- master
settings:
dockerfile: ManagementPage/ManagementPage/Dockerfile
repo: "registry.jacknet.io/51m0n/environment-api"
repo: "registry.jacknet.io/51m0n/environment-api"
username: simon
password:
from_secret: docker_password
registry: registry.jacknet.io
auto_tag: true
# upload docker
# upload docker
- name: upload_api
depends_on:
- build_api
image: plugins/docker
when:
branch:
- master
- master
settings:
context: Api
dockerfile: Api/Dockerfile
repo: "registry.jacknet.io/51m0n/environment-api"
repo: "registry.jacknet.io/51m0n/environment-api"
username: simon
password:
from_secret: docker_password
registry: registry.jacknet.io
auto_tag: true
# upload firmware blob
# - name: upload_esp
# - name: upload_esp

14
docker-compose.yml Normal file
View File

@ -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