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