forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.35 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
services:
app:
image: sylius/standard:1.11-traditional
environment:
APP_ENV: "dev"
DATABASE_URL: "mysql://root:mysql@mysql/sylius_%kernel.environment%"
# DATABASE_URL: "pgsql://root:postgres@postgres/sylius_%kernel.environment%" # When using postgres
PHP_DATE_TIMEZONE: "Europe/Warsaw"
MAILER_URL: "smtp://mailhog:1025"
volumes:
- ./:/app:delegated
- ./.docker/dev/php.ini:/etc/php/8.0/fpm/php.ini:delegated
- ./.docker/dev/php.ini:/etc/php/8.0/cli/php.ini:delegated
ports:
- 80:80
depends_on:
- mysql
networks:
- sylius
mysql:
image: mysql:5.7
platform: linux/amd64
environment:
- MYSQL_ROOT_PASSWORD=mysql
ports:
- 3306:3306
networks:
- sylius
# postgres:
# image: postgres:13
# environment:
# - POSTGRES_USER=root
# - POSTGRES_PASSWORD=postgres
# ports:
# - 5432:5432
# networks:
# - sylius
mailhog:
image: mailhog/mailhog
ports:
- 1025:1025 # SMTP
- 8025:8025 # UI
networks:
- sylius
networks:
sylius:
driver: bridge