Skip to content
Snippets Groups Projects
Commit 6188f2e7 authored by Davide Aprea's avatar Davide Aprea
Browse files

add worker container

parent 0206700d
No related branches found
No related tags found
1 merge request!19Resolve "use multi curl to improve performance"
......@@ -17,6 +17,7 @@ RUN apk add --update \
php7-tokenizer \
php7-xml \
php7-curl \
php7-pcntl \
php7-dom \
php7-fileinfo \
&& rm -rf /var/cache/apk/*
......
......@@ -17,6 +17,7 @@ RUN apk add --update \
php7-tokenizer \
php7-xml \
php7-curl \
php7-pcntl \
php7-dom \
php7-fileinfo \
&& rm -rf /var/cache/apk/*
......
......@@ -20,14 +20,14 @@ services:
build:
context: .
dockerfile: DockerfileDev
image: metager:latest
image: proxy:latest
working_dir: /html
volumes:
- .:/html
web:
depends_on:
- "phpfpm"
image: metager:latest
image: proxy:latest
working_dir: /html
command: nginx
volumes:
......@@ -38,4 +38,13 @@ services:
- "8080:80"
redis:
image: redis:5.0.3-alpine
container_name: redis
\ No newline at end of file
container_name: redis
worker:
depends_on:
- "phpfpm"
restart: on-failure
image: proxy:latest
working_dir: /html
volumes:
- .:/html
command: "su -s /bin/sh -c 'php artisan requests:fetcher' nginx"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment