-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (53 loc) · 1.41 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
version: '3.4'
services:
php:
image: 'badger/dev/php:7.4'
environment:
APP_ENV: '${APP_ENV:-prod}'
COMPOSER_HOME: '/var/www/.composer'
PHP_IDE_CONFIG: 'serverName=badger-cli'
XDEBUG_ENABLED: '${XDEBUG_ENABLED:-0}'
XDEBUG_CONFIG: 'remote_host=172.17.0.1'
volumes:
- './application:/srv/badger'
- './features:/srv/features'
- '${HOST_COMPOSER_HOME:-~/.composer}:/var/www/.composer'
working_dir: '/srv/badger'
command: 'php'
networks:
- 'badger'
fpm:
image: 'badger/dev/php:7.4'
environment:
APP_ENV: '${APP_ENV:-prod}'
PHP_IDE_CONFIG: 'serverName=badger'
XDEBUG_ENABLED: '${XDEBUG_ENABLED:-0}'
XDEBUG_CONFIG: 'remote_host=172.17.0.1'
volumes:
- './application:/srv/badger:rw'
working_dir: '/srv/badger'
command: 'php-fpm -F'
networks:
- 'badger'
httpd-back:
image: 'httpd:2.4'
environment:
APP_ENV: '${APP_ENV:-prod}'
depends_on:
- 'fpm'
ports:
- '${DOCKER_PORT_HTTP:-8001}:80'
volumes:
- './application:/srv/badger:ro'
- './infrastructure/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro'
- './infrastructure/httpd/back.conf:/usr/local/apache2/conf/vhost.conf:ro'
networks:
- 'badger'
db:
image: 'postgres:12.1'
ports:
- '${DOCKER_PORT_POSTGRES:-5434}:5432'
networks:
- 'badger'
networks:
badger: