hello world

pull/1/head
sunjay 6 years ago
parent 174740ea26
commit 50cdf90610

@ -2,12 +2,9 @@ Based off https://github.com/tzw0745/jikan-rest-docker
## Installation ## Installation
If you don't have Docker installed, install that first (checkout my install-docker.sh script)
Then:
```bash ```bash
$ bash run.sh $ docker-compose build
$ docker-compose up -d
``` ```
## Usage ## Usage

@ -2,18 +2,22 @@ version: "3.4"
services: services:
jikan-rest-api: jikan-rest:
build: build:
context: jikan context: jikan
dockerfile: Dockerfile dockerfile: Dockerfile
depends_on: depends_on:
- jikan-redis-db - jikan-redis
ports: ports:
- "9001:80" - "9001:80"
networks: networks:
- default - default
restart: always restart: always
jikan-redis-db: jikan-redis:
image: redis image: redis:rc-alpine
ports:
- "6379:6379"
networks:
- default
restart: always restart: always

@ -1,5 +1,5 @@
APP_ENV=production APP_ENV=production
APP_DEBUG=false APP_DEBUG=true
APP_KEY= APP_KEY=
APP_TIMEZONE=UTC APP_TIMEZONE=UTC
APP_URL=http://localhost APP_URL=http://localhost
@ -29,7 +29,7 @@ SLAVE_KEY=
SLAVE_CLIENT_IP_HEADER="X-Real-IP" SLAVE_CLIENT_IP_HEADER="X-Real-IP"
SLAVE_KEY_HEADER="X-Master" SLAVE_KEY_HEADER="X-Master"
REDIS_HOST=jikan-redis-db REDIS_HOST=jikan-redis
REDIS_PASSWORD=null REDIS_PASSWORD=null
REDIS_PORT=6379 REDIS_PORT=6379

@ -1,4 +1,4 @@
FROM php:7.3.11-apache-buster FROM php:7.3.14-apache-buster
ENV COMPOSER_ALLOW_SUPERUSER 1 ENV COMPOSER_ALLOW_SUPERUSER 1
@ -11,9 +11,8 @@ RUN apt-get update && apt-get install -y \
&& a2enmod rewrite \ && a2enmod rewrite \
&& service apache2 restart \ && service apache2 restart \
&& git clone https://github.com/jikan-me/jikan-rest.git . \ && git clone https://github.com/jikan-me/jikan-rest.git . \
&& composer install --prefer-dist --no-progress --no-suggest --classmap-authoritative --no-interaction \ && composer install --prefer-dist --no-progress --no-suggest --classmap-authoritative --no-interaction
&& git checkout 3e311808a8f6f872c1649f56f616dfeff4c58a06
ADD .env /run-jikan.sh ./ ADD .env run-jikan.sh ./
ENTRYPOINT ["./run-jikan.sh"] ENTRYPOINT ["./run-jikan.sh"]

@ -2,5 +2,5 @@
# allow write permission # allow write permission
chmod -R a+w storage/ chmod -R a+w storage/
# php:7.3.11-apache-buster ENTRYPOINT # php:7.3.14-apache-buster ENTRYPOINT
docker-php-entrypoint apache2-foreground docker-php-entrypoint apache2-foreground
Loading…
Cancel
Save