Add prod docker-compose and instructions
This commit is contained in:
parent
0b443cc6fc
commit
97ee6390d9
14
README.md
14
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.
|
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.
|
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
|
||||||
|
```
|
||||||
|
|
|
@ -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: .
|
Loading…
Reference in New Issue