-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
59 lines (56 loc) · 2.54 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
services:
app:
image: sylius/standard:1.11-traditional
environment:
APP_ENV: "dev"
DATABASE_URL: "mysql://root:mysql@mysql/sylius_%kernel.environment%?charset=utf8mb4"
# DATABASE_URL: "pgsql://root:postgres@postgres/sylius_%kernel.environment%?charset=utf8" # When using postgres
PHP_DATE_TIMEZONE: "Europe/Prague"
COMPOSER_HOME: "/tmp"
YARN_CACHE_FOLDER: "/tmp"
HOME: "/tmp"
XDEBUG_CONFIG: "client_host=172.17.0.1 client_port=9003 remote_log=/tmp/xdebug.log"
XDEBUG_TRIGGER: "yes" # to start XDebug for EVERY request (use `export XDEBUG_TRIGGER: "yes"` to enable it in CLI and `unset XDEBUG_TRIGGER` to disable for CLI again - in browser use same-named variable in GET, POST or COOKIE, or legacy named via some browser extension). For a single shot can be used inline environment variable like `XDEBUG_TRIGGER=yes ./bin/console
# XDEBUG_MODE: "off"
XDEBUG_MODE: "debug"
# XDEBUG_MODE: "profile"
PHP_IDE_CONFIG: "serverName=3brsSyliusPaymentRestrictionsPlugin"
volumes:
- ./:/app:delegated
- ./:/var/www:delegated
- ./.docker/nginx/nginx.conf:/etc/nginx/nginx.conf:delegated
# - ./.docker/php/php.ini:/etc/php8/php.ini:delegated
# - ./.docker/nginx/nginx.conf:/etc/nginx/nginx.conf:delegated
ports:
- "${APP_HOST_MAPPING_PORT:-8080}:80"
depends_on:
- mysql
# - postgres
networks:
- sylius
mysql:
image: mysql:8.0
platform: linux/amd64
environment:
MYSQL_ROOT_PASSWORD: mysql
ports:
# Host port 0 is for "first available"
# How to change it:
# - set MYSQL_HOST_MAPPING_PORT variable in .env file for example
# - or extends ports in docker-compose.override.yml
# To find out used port use `docker ps` and look for PORTS column to see mapped host port, including IP it can be for example 0.0.0.0:32772 which is roughly equivalent to 127.0.0.1:32772 for internal network requests
- "${MYSQL_HOST_MAPPING_PORT:-0}:3306"
networks:
- sylius
# postgres:
# image: postgres:14-alpine
# environment:
# POSTGRES_USER: root
# POSTGRES_PASSWORD: postgres
# ports:
# - ${POSTGRES_PORT:-5432}:5432
# networks:
# - sylius
networks:
sylius:
driver: bridge