-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.override.yml
88 lines (87 loc) · 3.77 KB
/
compose.override.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
services:
php:
image: ghcr.io/sylius/sylius-php:8.2-fixuid-xdebug-alpine
user: ${DOCKER_USER:-1000:1000}
depends_on:
mysql:
condition: service_healthy
environment:
# You can move these environment variables to your .env.local file
APP_DEBUG: 0
APP_ENV: ${APP_ENV:-prod}
APP_SECRET: EDITME
DATABASE_URL: "mysql://root@mysql/sylius_%kernel.environment%"
MAILER_DSN: smtp://mailhog:1025
MESSENGER_TRANSPORT_DSN: doctrine://default
SYLIUS_MESSENGER_TRANSPORT_MAIN_DSN: doctrine://default
SYLIUS_MESSENGER_TRANSPORT_MAIN_FAILED_DSN: doctrine://default?queue_name=main_failed
SYLIUS_MESSENGER_TRANSPORT_CATALOG_PROMOTION_REMOVAL_DSN: doctrine://default?queue_name=catalog_promotion_removal
SYLIUS_MESSENGER_TRANSPORT_CATALOG_PROMOTION_REMOVAL_FAILED_DSN: doctrine://default?queue_name=catalog_promotion_removal_failed
PHP_DATE_TIMEZONE: ${PHP_DATE_TIMEZONE:-UTC}
XDEBUG_MODE: debug
XDEBUG_CONFIG: >-
client_host=host.docker.internal
client_port=9003
log=/dev/stdout
# This should correspond to the server declared in PHPStorm `Preferences | Languages & Frameworks | PHP | Servers`
# Then PHPStorm will use the corresponding path mappings
PHP_IDE_CONFIG: serverName=sylius
extra_hosts:
- host.docker.internal:host-gateway
- $GALLY_SERVER_NAME:host-gateway
volumes:
- .:/srv/sylius:rw,cached
# if you develop on Linux, you may use a bind-mounted host directory instead
# - ./var:/srv/sylius/var:rw
- ./public:/srv/sylius/public:rw,delegated
# if you develop on Linux, you may use a bind-mounted host directory instead
# - ./public/media:/srv/sylius/public/media:rw
- public-media:/srv/sylius/public/media:rw
mysql:
volumes:
- mysql-data:/var/lib/mysql:rw
nginx:
volumes:
- ./public:/srv/sylius/public:ro
# if you develop on Linux, you may use a bind-mounted host directory instead
# - ./public/media:/srv/sylius/public/media:ro
- public-media:/srv/sylius/public/media:ro,nocopy
ports:
- "80"
extra_hosts:
- host.docker.internal:host-gateway
- $GALLY_SERVER_NAME:host-gateway
labels:
- traefik.enable=true
- traefik.http.services.sylius-web.loadbalancer.server.port=80
# Serve oro over http
- traefik.http.routers.sylius-web-http.rule=Host(`${SYLIUS_DOMAIN}`)
- traefik.http.routers.sylius-web-http.entrypoints=http
# Serve oro over https
- traefik.http.routers.sylius-web-https.rule=Host(`${SYLIUS_DOMAIN}`)
- traefik.http.routers.sylius-web-https.entrypoints=https
- traefik.http.routers.sylius-web-https.tls=true
nodejs:
image: node:${NODE_VERSION:-18}-alpine
user: ${DOCKER_USER:-1000:1000}
working_dir: /srv/sylius
entrypoint: [ "/bin/sh","-c" ]
command:
- |
npm install
npm run build
volumes:
- .:/srv/sylius:rw,cached
- ./public:/srv/sylius/public:rw,delegated
mailhog:
ports:
- "8025"
labels:
- traefik.enable=true
- traefik.http.services.oro5-db.loadbalancer.server.port=8025
# Serve oro over http
- traefik.http.routers.oro5-db-http.rule=Host(`database.${SYLIUS_DOMAIN}`)
- traefik.http.routers.oro5-db-http.entrypoints=http
volumes:
mysql-data:
public-media: