This repository has been archived by the owner on Mar 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (64 loc) · 1.63 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
66
67
68
69
70
71
72
73
74
version: '2'
services:
web:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./config/nginx/sites-enabled/default.conf:/etc/nginx/sites-enabled/default.conf
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./config/nginx/ssl:/etc/nginx/ssl
- ./config/nginx/auth:/etc/nginx/auth
volumes_from:
- appdata:ro
depends_on:
- php
php:
image: arvato/magento2-php:latest
volumes:
- ./config/php/php.ini:/usr/local/etc/php/php.ini
- ./config/php/php-fpm.conf:/usr/local/etc/php-fpm.conf
- ./config/php/ext-xdebug.ini:/usr/local/etc/php/conf.d/ext-xdebug.ini
volumes_from:
- appdata
depends_on:
- appdata
- mysql
- cache
user: www-data
appdata:
image: alpine:latest
volumes:
- ./config/appdata/startup.sh:/startup.sh
# - .:/var/www/html
volumes_from:
- container:buywithme-sync:rw
command: /bin/sh /startup.sh
mysql:
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: ${DATABASE_ROOT_PASSWORD}
MYSQL_DATABASE: ${DATABASE_NAME}
MYSQL_USER: ${DATABASE_USER}
MYSQL_PASSWORD: ${DATABASE_PASSWORD}
ports:
- "5000:3306"
volumes:
- magento2mysqldata:/var/lib/mysql
- ./config/mysql/custom-entrypoint.sh:/custom-entrypoint.sh
entrypoint: /bin/sh /custom-entrypoint.sh
cache:
image: redis:latest
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8080:80"
environment:
PMA_HOST: "mysql"
PMA_PORT: 3306
volumes:
magento2mysqldata:
driver: local
buywithme-sync:
external: true