add(infra): docker build
This commit is contained in:
parent
5adada0422
commit
84bd8355d6
10 changed files with 79 additions and 303 deletions
19
docker-compose.yml
Normal file
19
docker-compose.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: maot-shortner:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3032:8080"
|
||||
environment:
|
||||
- DATABASE_PATH=/app/data/shortener.db
|
||||
- APP_PORT=8080
|
||||
volumes:
|
||||
- data:/app/data
|
||||
|
||||
volumes:
|
||||
data:
|
||||
Loading…
Add table
Add a link
Reference in a new issue