Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prisma-cms/docker-nextjs
docker-compose boilerplate for @prisma-cms/nextjs
https://github.com/prisma-cms/docker-nextjs
Last synced: about 8 hours ago
JSON representation
docker-compose boilerplate for @prisma-cms/nextjs
- Host: GitHub
- URL: https://github.com/prisma-cms/docker-nextjs
- Owner: prisma-cms
- Created: 2021-04-23T17:07:26.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-14T06:18:38.000Z (4 months ago)
- Last Synced: 2024-07-14T23:27:28.030Z (4 months ago)
- Language: Dockerfile
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
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
### set DOCKER_BUILDKIT=0
https://github.com/moby/buildkit/issues/978#issuecomment-686420433
```sh
export DOCKER_BUILDKIT=0
```### First start
```
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d mysql
```Check this containers been started
```
docker-compose ps mysql
```Start proxy server
```
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d proxy
```### 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
```