-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
63 lines (58 loc) · 1.49 KB
/
docker-compose.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3.8'
services:
php-fpm:
build:
context: ./docker/php-fpm
working_dir: /usr/local/apache2/htdocs/php-kiosk-symfony
volumes:
- ./docker/php-fpm/php.ini:/usr/local/etc/php/php.ini
- ./:/usr/local/apache2/htdocs/php-kiosk-symfony
expose:
- "9000"
networks:
- bitpay
init:
build:
context: ./docker/php-fpm
working_dir: /usr/local/apache2/htdocs/php-kiosk-symfony
volumes:
- ./docker/php-fpm/php.ini:/usr/local/etc/php/php.ini
- ./:/usr/local/apache2/htdocs/php-kiosk-symfony
networks:
- bitpay
user: "1000:1000"
command: sh -c './init.sh'
apache2:
build:
context: ./docker/apache2
ports:
- "80:80"
volumes:
- ./docker/apache2/sites/default.apache.conf:/usr/local/apache2/conf/extra/default.apache.conf
- ./:/usr/local/apache2/htdocs/php-kiosk-symfony
depends_on:
- php-fpm
networks:
- bitpay
command: ["httpd-foreground"]
mercure:
build:
context: ./docker/mercure
ports:
- "1337:80"
- "1338:443"
privileged: true
environment:
MERCURE_PUBLISHER_JWT_KEY: ${MERCURE_JWT_SECRET}
MERCURE_SUBSCRIBER_JWT_KEY: ${MERCURE_JWT_SECRET}
DEBUG: debug
SERVER_NAME: :80
ALLOW_ANONYMOUS: 1
MERCURE_EXTRA_DIRECTIVES: |-
cors_origins "http://127.0.0.1" "http://php-kiosk-demo-symfony.test"
anonymous
hostname: bitpay-mercure
networks:
- bitpay
networks:
bitpay: