docker-compose.yml for Strapi created

This commit is contained in:
s-prechtl 2022-10-04 08:38:52 +02:00
parent c5799921d1
commit 562829a23b
2 changed files with 11 additions and 12 deletions

View file

@ -1,13 +1,3 @@
# Creating the svelte project
# 🚀 Getting started with Svelte
## Create the docker image
``docker build -t svelte .``
## Run the docker container
``docker run --name svelte -dp 5173:5173 svelte``
## Mastercommand for rebuild run etc.
``docker build -t svelte .;docker stop svelte;docker rm svelte; docker run --name svelte -dp 5173:5173 svelte``
Starting the container: ``docker-compose up --build -d``

View file

@ -0,0 +1,9 @@
version: "3"
services:
svelte:
container_name: svelte
build: .
image: svelte:latest
ports:
- "80:5173"