From 97ee6390d9537fc58f2c279c873aa73e4bcaa8cc Mon Sep 17 00:00:00 2001 From: rasmus Date: Mon, 5 Apr 2021 19:00:06 +0000 Subject: [PATCH] Add prod docker-compose and instructions --- README.md | 14 ++++++++++++++ docker-compose.yml | 17 +++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index 4415bcb..a0b3e84 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,17 @@ That's about what you would expect for the first larger than a few lines python thing (this) I have started from scratch and made functional. To be honest, the HPE side is quite a bird-copter as well. + +# Running development instance + +``` +docker-compose -f docker-compose.dev.yml up --build +``` + +# Deploying + +Deploying in prod: + +``` +docker-compose -f docker-compose.yml up --build -d +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..32963b5 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: '3.7' + +networks: + infra: + external: true + +services: + app: + restart: on-failure + env_file: .env + volumes: + - './config/id_rsa:/bss/.ssh/id_rsa' + networks: + infra: + ipv4_address: 172.21.92.99 + build: + context: .