-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (54 loc) · 1.77 KB
/
docker-compose.yml
File metadata and controls
55 lines (54 loc) · 1.77 KB
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
version: '3'
services:
# postgis:
# build:
# context: ./.docker/postgis
# args:
# var_uid: ${CURRENT_UID}
# var_gid: ${CURRENT_GID}
# environment:
# POSTGRES_USER: ${PGSQL_USER}
# POSTGRES_PASSWORD: ${PGSQL_PASSWORD}
# volumes:
# - ./.docker/postgis/data:/var/lib/postgresql/data
# ports:
# - "5433:5432"
php-fpm:
build:
context: ./.docker/php-fpm
args:
var_uid: ${CURRENT_UID}
var_gid: ${CURRENT_GID}
environment:
APP_ENV: ${APP_ENV}
APP_SECRET: ${APP_SECRET}
PGSQL_USER: ${PGSQL_USER}
PGSQL_PASSWORD: ${PGSQL_PASSWORD}
# xdebug-2.8.1
# XDEBUG_CONFIG: "remote_host=host.docker.internal remote_port=9003 idekey=PHPSTORM"
# xdebug 3.1.6?
# XDEBUG_CONFIG: "client_host=host.docker.internal mode=debug start_with_request=yes client_port=9003 idekey=PHPSTORM"
# create Server "LVERMGEO" (PHPSTORM)
PHP_IDE_CONFIG: "serverName=LVERMGEO"
volumes:
- ./:/var/www
# depends_on:
# - postgis
command: sh -c "php-fpm"
extra_hosts:
- "host.docker.internal:host-gateway"
nginx:
build:
context: ./.docker/nginx
args:
var_uid: ${CURRENT_UID}
var_gid: ${CURRENT_GID}
volumes:
- ./:/var/www
- ./.docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./.docker/nginx/sites/:/etc/nginx/sites-available
- ./.docker/nginx/conf.d/:/etc/nginx/conf.d
ports:
- "8000:8000"
depends_on:
- php-fpm