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 name: deploy
steps: steps:
# GO api # GO api
- name: build_api - name: build_api
image: golang image: golang
environment: environment:
@ -11,11 +11,12 @@ 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
@ -27,7 +28,7 @@ steps:
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

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