Add prod docker-compose and instructions

This commit is contained in:
rasmus 2021-04-05 19:00:06 +00:00
parent 0b443cc6fc
commit 97ee6390d9
2 changed files with 31 additions and 0 deletions

View File

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

17
docker-compose.yml Normal file
View File

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