first draft booting with strapi, mongo, nginx
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
api:
|
||||
build: ./Docker/strapi
|
||||
environment:
|
||||
- APP_NAME=strapi-app
|
||||
- DATABASE_CLIENT=mongo
|
||||
- DATABASE_HOST=db
|
||||
- DATABASE_PORT=27017
|
||||
- DATABASE_NAME=strapi
|
||||
- DATABASE_USERNAME=
|
||||
- DATABASE_PASSWORD=
|
||||
- DATABASE_SSL=false
|
||||
- DATABASE_AUTHENTICATION_DATABASE=strapi
|
||||
- HOST=localhost
|
||||
ports:
|
||||
- 1337:1337
|
||||
volumes:
|
||||
- strapi-app:/usr/src/api/strapi-app
|
||||
# - strapi-node_modules:/usr/src/api/strapi-app/node_modules
|
||||
depends_on:
|
||||
- db
|
||||
restart: always
|
||||
|
||||
db:
|
||||
image: mongo
|
||||
environment:
|
||||
- MONGO_INITDB_DATABASE=strapi
|
||||
ports:
|
||||
- 27017:27017
|
||||
volumes:
|
||||
- mongo-db:/data/db
|
||||
restart: always
|
||||
|
||||
nginx:
|
||||
build: ./Docker/nginx/
|
||||
ports:
|
||||
- 8890:80
|
||||
volumes:
|
||||
- ./public_html:/var/www/html
|
||||
# - ./log:/var/log:rw
|
||||
depends_on:
|
||||
- api
|
||||
|
||||
volumes:
|
||||
mongo-db:
|
||||
strapi-app:
|
||||
strapi-node_modules:
|
||||
Reference in New Issue
Block a user