-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 879 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 879 Bytes
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
networks:
backend:
driver: bridge
volumes:
pg-database:
driver: local
services:
ec-cube:
build: .
ports:
- "8080:80"
- "8081:443"
environment:
APP_ENV: dev
DATABASE_URL: "postgresql://eccube:password@postgres:5432/eccube_db"
DATABASE_SERVER_VERSION: 15
depends_on:
postgres:
condition: service_healthy
networks:
- backend
extra_hosts:
- "host.docker.internal:host-gateway"
postgres:
image: postgres:15-alpine
environment:
TZ: Asia/Tokyo
POSTGRES_DB: eccube_db
POSTGRES_USER: eccube
POSTGRES_PASSWORD: password
ports:
- "15432:5432"
volumes:
- pg-database:/var/lib/postgresql/data
networks:
- backend
healthcheck:
test: pg_isready -U eccube -d eccube_db
interval: 3s
timeout: 3s
retries: 10