docker-compose.yml for Strapi created
This commit is contained in:
parent
c5799921d1
commit
562829a23b
2 changed files with 11 additions and 12 deletions
|
|
@ -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``
|
||||
|
|
|
|||
9
frontend/svelte/docker-compose.yml
Normal file
9
frontend/svelte/docker-compose.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
version: "3"
|
||||
services:
|
||||
svelte:
|
||||
container_name: svelte
|
||||
build: .
|
||||
image: svelte:latest
|
||||
|
||||
ports:
|
||||
- "80:5173"
|
||||
Loading…
Add table
Add a link
Reference in a new issue