-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (35 loc) · 985 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (35 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: '3'
services:
php:
build: ./docker/php
env_file: '.env'
volumes:
- './:/var/www/mercure-chat:rw'
nginx:
build: ./docker/nginx
ports:
- 81:80
volumes:
- './public/:/var/www/mercure-chat/public'
database:
image: postgres:11
ports:
- 5432:5432
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: '${DB_USER}'
POSTGRES_PASSWORD: '${DB_PASSWORD}'
POSTGRES_DATABASE: '${DB_NAME}'
mercure:
image: dunglas/mercure
ports:
- 3000:80
environment:
PUBLISH_URL: '${MERCURE_PUBLISH_URL}'
JWT_KEY: '${MERCURE_JWT_KEY}'
ALLOW_ANONYMOUS: '${MERCURE_ALLOW_ANONYMOUS}'
CORS_ALLOWED_ORIGINS: '${MERCURE_CORS_ALLOWED_ORIGINS}'
PUBLISH_ALLOWED_ORIGINS: '${MERCURE_PUBLISH_ALLOWED_ORIGINS}'
volumes:
db-data: