Skip to content
Snippets Groups Projects
Commit 5838439a authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

more efficient compose file

parent ec211735
No related branches found
No related tags found
1 merge request!2112Resolve "Upgrade Dependencies"
......@@ -8,11 +8,12 @@ volumes:
# Services
services:
fpm:
image: metager:latest
build:
&fpm_build
context: ./
dockerfile: build/fpm/Dockerfile
target: ${APP_ENV}
pull_policy: never
restart: unless-stopped
networks:
- metager
......@@ -23,6 +24,7 @@ services:
healthcheck:
test: "curl -f http://nginx:8080/health-check/liveness"
nginx:
image: metager_nginx:latest
build:
context: ./
dockerfile: build/nginx/Dockerfile
......@@ -39,8 +41,8 @@ services:
healthcheck:
test: "curl -f http://nginx:8080/health-check/nginx"
scheduler:
build:
<<: *fpm_build
image: metager:latest
pull_policy: never
restart: unless-stopped
entrypoint: /usr/local/bin/php
command: artisan schedule:work-mg
......@@ -53,8 +55,8 @@ services:
healthcheck:
test: "curl -f http://nginx:8080/health-check/liveness-scheduler"
worker:
build:
<<: *fpm_build
image: metager:latest
pull_policy: never
restart: unless-stopped
entrypoint: /usr/local/bin/php
command: artisan requests:fetcher
......@@ -75,8 +77,8 @@ services:
ports:
- "7900:7900"
composer:
build:
<<: *fpm_build
image: metager:latest
pull_policy: never
entrypoint: /usr/bin/composer
command: install
environment:
......
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