forked from coreshop/CoreShop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
118 lines (109 loc) · 2.82 KB
/
docker-compose.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: '3.4'
networks:
cors_dev:
external: true
coreshop_3:
external: false
services:
db:
image: mariadb:10.5
container_name: coreshop-3-mariadb
networks:
- cors_dev
- coreshop_3
working_dir: /application
command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_general_ci]
volumes:
- coreshop-3-database:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=ROOT
- MYSQL_DATABASE=pimcore
- MYSQL_USER=pimcore
- MYSQL_PASSWORD=pimcore
ports:
- "3306:3306"
nginx:
image: nginx:stable-alpine
volumes:
- .:/var/www/html:cached
- ./.docker/nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- php
- php-debug
networks:
- cors_dev
- coreshop_3
labels:
- traefik.enable=true
- traefik.http.routers.coreshop_3.rule=Host(`coreshop-3.localhost`)
- traefik.http.routers.coreshop_3.entrypoints=cors_dev
- traefik.http.routers.coreshop_3.tls=true
- traefik.http.services.coreshop_3.loadbalancer.server.port=80
- traefik.docker.network=cors_dev
nginx8:
image: nginx:stable-alpine
volumes:
- .:/var/www/html:cached
- ./.docker/nginx8.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- php
- php-debug
networks:
- cors_dev
- coreshop_3
labels:
- traefik.enable=true
- traefik.http.routers.coreshop_3_php8.rule=Host(`coreshop-3-php8.localhost`)
- traefik.http.routers.coreshop_3_php8.entrypoints=cors_dev
- traefik.http.routers.coreshop_3_php8.tls=true
- traefik.http.services.coreshop_3_php8.loadbalancer.server.port=80
- traefik.docker.network=cors_dev
php:
image: pimcore/pimcore:php8.1-latest
container_name: coreshop-php
networks:
- coreshop_3
environment:
COMPOSER_HOME: /var/www/html
depends_on:
- db
volumes:
- .:/var/www/html:cached
php-debug:
image: pimcore/pimcore:php8.1-debug-latest
container_name: coreshop-php-debug
networks:
- coreshop_3
depends_on:
- db
volumes:
- .:/var/www/html:cached
environment:
PHP_IDE_CONFIG: serverName=localhost
XDEBUG_TRIGGER: PHPSTORM
COMPOSER_HOME: /var/www/html
php8:
image: pimcore/pimcore:PHP8.0-fpm
container_name: coreshop-php8
networks:
- coreshop_3
environment:
COMPOSER_HOME: /var/www/html
depends_on:
- db
volumes:
- .:/var/www/html:cached
php8-debug:
image: pimcore/pimcore:PHP8.0-fpm-debug
container_name: coreshop-php8-debug
networks:
- coreshop_3
depends_on:
- db
volumes:
- .:/var/www/html:cached
environment:
PHP_IDE_CONFIG: serverName=localhost
COMPOSER_HOME: /var/www/html
volumes:
coreshop-3-database: