-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (61 loc) · 1.52 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
61
62
63
64
65
version: '2.0'
services:
redis:
image: redis:alpine
restart: always
container_name: pimcore-redis
db:
image: mariadb:10.1
container_name: pimcore-mariadb
restart: always
working_dir: /application
command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci, --innodb-file-format=Barracuda, --innodb-large-prefix=1, --innodb-file-per-table=1]
volumes:
- pimcore-database:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=ROOT
- MYSQL_DATABASE=pimcore
- MYSQL_USER=pimcore
- MYSQL_PASSWORD=pimcore
# phpmyadmin
phpmyadmin:
depends_on:
- db
build:
context: phpmyadmin
dockerfile: Dockerfile
container_name: pimcore-phpmyadmin
restart: always
ports:
- '8080:80'
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: ROOT
pimcore:
depends_on:
- db
- redis
build:
context: pimcore-app
dockerfile: Dockerfile
container_name: pimcore-app
restart: always
volumes:
- pimcore-app:/var/www/html
environment:
- PIMCORE_INSTALL_ADMIN_USERNAME=admin
- PIMCORE_INSTALL_ADMIN_PASSWORD=admin
- PIMCORE_INSTALL_MYSQL_HOST_SOCKET=db
- PIMCORE_INSTALL_MYSQL_USERNAME=pimcore
- PIMCORE_INSTALL_MYSQL_PASSWORD=pimcore
- PIMCORE_INSTALL_MYSQL_DATABASE=pimcore
- PIMCORE_INSTALL_MYSQL_PORT=3306
ports:
- "80:80"
- "443:443"
links:
- db:db
- redis:redis
volumes:
pimcore-database:
pimcore-app: