-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
60 lines (57 loc) · 1.44 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
60
services:
php:
user: www-data
build:
context: ./docker/php
depends_on:
- database
- mail
ports:
- ${PORT_WEB_APP:-8000}:8000
- ${PORT_BROWSERSYNC:-3000}:${PORT_BROWSERSYNC:-3000}
volumes:
- php:/var/www
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
- ./docker/php/httpd.conf:/etc/apache2/apache2.conf
working_dir: /var/www
environment:
APP_DEBUG: ${APP_DEBUG:-true}
APP_KEY: _DUMMYDUMMYDUMMYDUMMYDUMMYDUMMY_
APP_ENV: local
APP_URL: http://localhost:8000
APP_TIMEZONE: Asia/Tokyo
APP_LOCALE: ja
APP_FAKER_LOCALE: ja_JP
DB_CONNECTION: pgsql
DB_HOST: database
DB_PORT: 5432
DB_DATABASE: postgres
DB_USERNAME: postgres
PGHOST: database
PGUSER: postgres
TZ: Asia/Tokyo
MAIL_MAILER: smtp
MAIL_HOST: mail
MAIL_PORT: 1025
QUEUE_CONNECTION: sync
LANG: C.UTF-8
LANGUAGE: en_US
PHP_CS_FIXER_IGNORE_ENV: 1 # TODO php-cs-fixerがphp-8.4に対応した時点で削除
database:
image: postgres:bullseye
volumes:
- database:/var/lib/postgresql/data
- ./docker/postgres:/docker-entrypoint-initdb.d
ports:
- ${PORT_PGSQL:-0}:5432
environment:
TZ: Asia/Tokyo
PGUSER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
mail:
image: axllent/mailpit
ports:
- ${PORT_WEB_MAIL:-8025}:8025
volumes:
database:
php: