forked from jmleroux/covid-attestation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (31 loc) · 909 Bytes
/
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
version: '3'
services:
nginx:
image: 'nginx:alpine'
depends_on:
- 'fpm'
volumes:
- './:/srv/app:ro'
- './docker/nginx.conf:/etc/nginx/conf.d/default.conf:ro'
networks:
- covid_attestation
ports:
- '8081:80'
environment:
PHP_IDE_CONFIG: 'serverName=covid-attestation.local'
fpm:
image: jmleroux/fpm:php-7.4
user: docker
working_dir: /srv/app
networks:
- covid_attestation
environment:
XDEBUG_CONFIG: 'remote_host=172.17.0.1'
PHP_IDE_CONFIG: 'serverName=covid-attestation-cli'
PHP_XDEBUG_REMOTE_HOST: 172.17.0.1
PHP_XDEBUG_ENABLED: '${XDEBUG_ENABLED:-0}'
volumes:
- ./:/srv/app
- ~/.composer:/home/docker/.composer
networks:
covid_attestation: