https://github.com/prisma-cms/docker
Install prisma-cms via docker-compose
https://github.com/prisma-cms/docker
Last synced: 4 months ago
JSON representation
Install prisma-cms via docker-compose
- Host: GitHub
- URL: https://github.com/prisma-cms/docker
- Owner: prisma-cms
- Created: 2019-11-28T05:24:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-23T17:02:22.000Z (about 5 years ago)
- Last Synced: 2025-01-15T08:06:38.097Z (over 1 year ago)
- Language: Dockerfile
- Size: 51.8 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
Awesome Lists containing this project
README
## Prerequirments
- git
- docker v 19+
- docker-compose v 1.25+
## Instalation
1. Clone project with submodules
```
git clone --recurse-submodules https://github.com/prisma-cms/docker my-project-name
cd my-project-name
```
2. Copy and edit environments file
```
cp .env.sample .env
```
3. Copy and edit web-server config file
```
cp caddy/Caddyfile.sample caddy/Caddyfile
```
4. Copy and edit coturn config file
```
cp coturn/turnserver.conf.sample coturn/turnserver.conf
```
## Start dev
### First start
```
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d mysql
```
```
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d prisma
```
Check this containers been started
```
docker-compose ps mysql prisma
```
Start proxy server
```
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d proxy
```
Start API-server
```
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d api
```
After try open http://localhost:2016
Start Front-server
```
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d front
```
After try open http://localhost:2015
### WebRTC services for videochats
```
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d rtcmultyconnection coturn
```
### Additional services
Start PhpMyAdmin
```
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d pma
```
After try open http://localhost:2017
## Start prod
```
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up --build -d
```
## Stop all containers
```
# In project's folder
docker-compose stop
```
## Remove all containers
```
# In project's folder
docker-compose down
```