-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (60 loc) · 1.94 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (60 loc) · 1.94 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
55
56
57
58
59
60
61
62
63
64
services:
app:
container_name: app
build:
context: .
environment:
APP_ENV: "dev"
DATABASE_SERVER_VERSION: "8.0.39"
DATABASE_URL: "mysql://root:mysql@mysql/sylius_%kernel.environment%??charset=utf8mb4&serverVersion=8.0.39"
# DATABASE_URL: "pgsql://root:postgres@postgres/sylius_%kernel.environment%?charset=utf8" # When using postgres
PHP_DATE_TIMEZONE: "Europe/Warsaw"
MAILER_DSN: "smtp://mailhog:1025"
# to enable step debugging, build with e.g. XDEBUG_MODE=debug, or set the below to "debug"
XDEBUG_MODE: ${XDEBUG_MODE:-off}
# to use xdebug, create a server named PHPSTORM in Settings > PHP > Servers
PHP_IDE_CONFIG: "serverName=PHPSTORM"
volumes:
- ./:/app:delegated
- ./.docker/php.ini:/etc/php8/php.ini:delegated
- ./.docker/nginx.conf:/etc/nginx/nginx.conf:delegated
ports:
- "80:80"
depends_on:
- mysql
networks:
- sylius
mysql:
container_name: mysql
image: mysql:8.0
platform: linux/amd64
environment:
MYSQL_ROOT_PASSWORD: mysql
ports:
- ${MYSQL_PORT:-3306}:3306
networks:
- sylius
# postgres:
# image: postgres:14-alpine
# environment:
# POSTGRES_USER: root
# POSTGRES_PASSWORD: postgres
# ports:
# - ${POSTGRES_PORT:-5432}:5432
# networks:
# - sylius
mailhog:
container_name: mailhog
# do not use in production!
image: mailhog/mailhog:latest
environment:
- MH_STORAGE=maildir
# volumes:
# - ./docker/mailhog/maildir:/maildir:rw,delegated
ports:
- "${MAILHOG_PORT:-8025}:8025"
networks:
- sylius
networks:
sylius:
driver: bridge