44 lines
967 B
YAML
44 lines
967 B
YAML
version: '3.4'
|
|
|
|
services:
|
|
nginx:
|
|
image: nginx:latest
|
|
ports:
|
|
- "8080:80"
|
|
volumes:
|
|
- ./front:/var/www/front:cached
|
|
- ./api:/var/www/api:cached
|
|
- .docker-compose/nginx/cojedzie-rr.conf:/etc/nginx/conf.d/cojedzie-rr.conf
|
|
|
|
api:
|
|
build:
|
|
context: ./api
|
|
dockerfile: rr.Dockerfile
|
|
env_file:
|
|
- .docker-compose/api/.env
|
|
- api/.env.local
|
|
environment:
|
|
- TRUSTED_PROXIES=172.0.0.0/8
|
|
ports:
|
|
- 8888:8080
|
|
volumes:
|
|
- ./api:/var/www:cached
|
|
- .docker-compose/api/log.conf:/usr/local/etc/php-fpm.d/zz-log.conf
|
|
command: ["rr", "serve", "-c", ".rr.yaml"]
|
|
|
|
frontend:
|
|
image: node:15.2.1
|
|
working_dir: /app
|
|
environment:
|
|
- APP_API=http://nginx/api
|
|
volumes:
|
|
- ./front:/app
|
|
command: ["node", "build/server.js"]
|
|
|
|
blackfire:
|
|
image: blackfire/blackfire
|
|
ports: ["8707"]
|
|
environment:
|
|
- BLACKFIRE_SERVER_ID
|
|
- BLACKFIRE_SERVER_TOKEN
|