Update docker-compose to use pre-built image from GHCR
This commit is contained in:
parent
ee84c18e90
commit
0a67a881b8
3 changed files with 45 additions and 19 deletions
22
docker-compose.build.yml
Normal file
22
docker-compose.build.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
masina-dock:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: masina-dock
|
||||
ports:
|
||||
- "5000:5000"
|
||||
volumes:
|
||||
- ./backend:/app/backend
|
||||
- ./frontend:/app/frontend
|
||||
- ./uploads:/app/uploads
|
||||
- masina-data:/app/data
|
||||
environment:
|
||||
- FLASK_ENV=production
|
||||
- PYTHONUNBUFFERED=1
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
masina-data:
|
||||
Loading…
Add table
Add a link
Reference in a new issue