Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed May 31, 2023
1 parent c8431dc commit f0565ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 30 deletions.
35 changes: 6 additions & 29 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,30 @@ version: "3.7"

services:
frontend:
build:
dockerfile: ./docker/npm/Dockerfile
image: ghcr.io/spiral/ticket-booking-frontend:latest
ports:
- "3000:3000"
depends_on:
- web

centrifugo-rpc:
build:
dockerfile: ./docker/php/Dockerfile
args:
SERVICE_NAME: centrifugo
image: ghcr.io/spiral/ticket-booking-centrifugo:latest
env_file:
- .env
volumes:
- ./centrifugo:/var/www/
- ./shared:/var/shared/\
depends_on:
- collector
- redis
command: rr serve
restart: on-failure

web:
build:
dockerfile: ./docker/php/Dockerfile
args:
SERVICE_NAME: web
image: ghcr.io/spiral/ticket-booking-web:latest
env_file:
- .env
environment:
DB_DATABASE: homestead
ports:
- "8080:8080"
volumes:
- ./web:/var/www/
- ./proto:/var/www/proto/
- ./shared:/var/shared/
depends_on:
- collector
- redis
Expand All @@ -51,10 +37,7 @@ services:
restart: on-failure

users:
build:
dockerfile: ./docker/php/Dockerfile
args:
SERVICE_NAME: users
image: ghcr.io/spiral/ticket-booking-users:latest
env_file:
- .env
environment:
Expand All @@ -72,10 +55,7 @@ services:
restart: on-failure

payment:
build:
dockerfile: ./docker/php/Dockerfile
args:
SERVICE_NAME: payment
image: ghcr.io/spiral/ticket-booking-payment:latest
env_file:
- .env
environment:
Expand All @@ -91,10 +71,7 @@ services:
restart: on-failure

cinema:
build:
dockerfile: ./docker/php/Dockerfile
args:
SERVICE_NAME: cinema
image: ghcr.io/spiral/ticket-booking-cinema:latest
env_file:
- .env
environment:
Expand Down
2 changes: 1 addition & 1 deletion docker/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ COPY --from=git /app/proto /app/proto
WORKDIR /app/$SERVICE_NAME

RUN composer config --no-plugins allow-plugins.spiral/composer-publish-plugin false
RUN composer install --no-dev
RUN composer install

LABEL org.opencontainers.image.source=$REPOSITORY
LABEL org.opencontainers.image.description="Ticket booking $SERVICE_NAME"
Expand Down

0 comments on commit f0565ec

Please sign in to comment.