feat: init inkl. docker configs
This commit is contained in:
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
lebenslauf-app:
|
||||
# Portainer kann per Git-Verbindung das Image automatisch anhand
|
||||
# des Dockerfiles ("build: .") im Repositiory bauen und deployen.
|
||||
build: .
|
||||
container_name: lebenslauf-app-container
|
||||
ports:
|
||||
- "4321:4321"
|
||||
volumes:
|
||||
# Für Portainer sind sogenannte "Named Volumes" wesentlich besser
|
||||
# als lokale Ordner-Pfade, da Docker/Portainer den Speicherort selbst verwaltet.
|
||||
- lebenslauf_data:/app/data
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- HOST=0.0.0.0
|
||||
- PORT=4321
|
||||
- NODE_ENV=production
|
||||
|
||||
# Deklaration des benannten Volumes für Portainer
|
||||
volumes:
|
||||
lebenslauf_data:
|
||||
name: lebenslauf_daten_volume
|
||||
Reference in New Issue
Block a user