forked from EC-CUBE/ec-cube2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (54 loc) · 1.49 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
version: '3'
networks:
backend:
driver: bridge
volumes:
mailcatcher-data:
driver: local
### ignore folder volume #####
vendor:
driver: local
services:
ec-cube:
### ローカルでビルドする場合は以下のコマンドを使用します
## docker build -t ec-cube2 --no-cache --pull --build-arg TAG=8.1-apache .
## docker tag ec-cube2 ghcr.io/ec-cube/ec-cube2-php:8.1-apache
image: ${REGISTRY:-ghcr.io}/${IMAGE_NAME:-ec-cube/ec-cube2-php}:${TAG:-8.1-apache}
volumes:
### 同期対象からコストの重いフォルダを除外 #####################
- "vendor:/var/www/app/data/vendor"
ports:
- 8080:80
- 4430:443
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: ~
ADMIN_DIR: admin/
ADMIN_FORCE_SSL: 'false'
ADMIN_ALLOW_HOSTS: 'a:0:{}'
AUTH_MAGIC: ~
PASSWORD_HASH_ALGOS: sha256
MAIL_BACKEND: smtp
SMTP_HOST: mailcatcher
SMTP_PORT: 1025
SMTP_USER: ~
SMTP_PASSWORD: ~
networks:
- backend
### Mailcatcher ##################################
mailcatcher:
image: schickling/mailcatcher
ports:
- "1080:1080"
- "1025:1025"
networks:
- backend