-
Notifications
You must be signed in to change notification settings - Fork 98
/
docker-compose.pgsql.yml
56 lines (54 loc) · 1.35 KB
/
docker-compose.pgsql.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
volumes:
pg-database:
driver: local
services:
ec-cube:
command: apache2-foreground
entrypoint: /wait-for-pgsql.sh
depends_on:
postgres:
condition: service_healthy
environment:
TZ: Asia/Tokyo
PHP_POST_MAX_SIZE: 10M
PHP_UPLOAD_MAX_FILESIZE: 10M
PHP_LOG_ERRORS: "On"
PHP_ERROR_REPORTING: "E_ALL"
PHP_ERROR_LOG: "/proc/self/fd/2"
# EC-CUBE2 Config
HTTP_URL: https://localhost:4430/
HTTPS_URL: https://localhost:4430/
ROOT_URLPATH: /
DOMAIN_NAME: ~
DB_TYPE: pgsql
DB_USER: eccube_db_user
DB_PASSWORD: password
DB_SERVER: postgres
DB_NAME: eccube_db
DB_PORT: 5432
ADMIN_DIR: admin/
ADMIN_FORCE_SSL: 'false'
ADMIN_ALLOW_HOSTS: 'a:0:{}'
AUTH_MAGIC: ~
PASSWORD_HASH_ALGOS: sha256
postgres:
image: postgres:latest
environment:
- TZ=Asia/Tokyo
- POSTGRES_DB=eccube_db
- POSTGRES_USER=eccube_db_user
- POSTGRES_PASSWORD=password
# 古いクライアント用の設定
# - POSTGRES_HOST_AUTH_METHOD=md5
# - POSTGRES_INITDB_ARGS=--auth-host=md5
ports:
- 15432:5432
volumes:
- pg-database:/var/lib/postgresql/data
networks:
- backend
healthcheck:
test: pg_isready -U eccube_db_user
interval: 3s
timeout: 3s
retries: 3