forked from moay/server-for-symfony-flex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (38 loc) · 1.16 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
version: '3.4'
services:
php:
build:
context: .
target: server-for-symfony-flex-php
args:
- FPM_PORT=${FPM_PORT:-9000}
- PHP_DATE_TIMEZONE=${PHP_DATE_TIMEZONE:-UTC}
env_file:
- .env.local
volumes:
- .:/srv/server-for-symfony-flex:rw,cached
- ./public:/srv/server-for-symfony-flex/public:rw,delegated
network_mode: host
nginx:
build:
context: .
target: server-for-symfony-flex-nginx
args:
- NGINX_PORT=${NGINX_PORT:-8080}
- FPM_HOSTNAME=${FPM_HOSTNAME:-localhost}
- FPM_PORT=${FPM_PORT:-9000}
depends_on:
- php
volumes:
- ./public:/srv/server-for-symfony-flex/public:ro
network_mode: host
nodejs:
build:
context: .
target: server-for-symfony-flex-nodejs
depends_on:
- php
volumes:
- .:/srv/server-for-symfony-flex:rw,cached
- ./public:/srv/server-for-symfony-flex/public:rw,delegated
network_mode: host