Skip to content

Instantly share code, notes, and snippets.

@delirehberi
Created June 23, 2020 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save delirehberi/6a430369397496ea89a33748881ff9a8 to your computer and use it in GitHub Desktop.
Save delirehberi/6a430369397496ea89a33748881ff9a8 to your computer and use it in GitHub Desktop.
version: '3'
services:
php:
build:
context: ./docker/php
ports:
- 9000:9000
volumes:
- ./:/app/
- ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
- ./php.ini:/usr/local/etc/php/conf.d/override.ini
nginx:
image: nginx:1.16.1
ports:
- 80:80
volumes:
- ./:/app/
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
node:
image: node:13
volumes:
- ./:/app/
working_dir: /app
postgresql:
image: postgres:12
ports:
- 5432:5432
depends_on:
- php
volumes:
- ./:/app/
environment:
POSTGRES_DB: databasename
POSTGRES_USER: databaseuser
POSTGRES_PASSWORD: databasepassword
mercure:
image: dunglas/mercure
ports:
- "8080:80"
environment:
JWT_KEY: ""
ALLOW_ANONYMOUS: 1
CORS_ALLOWED_ORIGINS: "*"
PUBLISH_ALLOWED_ORIGINS: "http://localhost"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment