forked from OXIDFabian/OXID_Docker_Stackv2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (79 loc) · 2.09 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
75
76
77
78
79
80
81
82
83
84
85
86
87
version: '3.7'
services:
db:
image: ${DB_IMAGE}
restart: always
volumes:
- ${PWD}/data/mysql/:/var/lib/mysql
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
TZ: Europe/Berlin
networks:
- internal
php:
image: oxidfabian/oxid-php:${PHP_VERSION}
restart: always
volumes:
- ${PWD}/data/www/:/var/www/html/:cached
- ${PWD}/auth.json:/tmp/auth.json
depends_on:
- db
networks:
- internal
environment:
DOMAIN: ${DOMAIN}
OXID_VERSION: ${OXID_VERSION}
OXID_EDITION: ${OXID_EDITION}
OXID_SERIAL: ${OXID_SERIAL}
OXID_DEMODATA: ${OXID_DEMODATA}
INSTALL_SHOP: ${INSTALL_SHOP}
MYSQL_HOST: db
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MEMCACHED: ${MEMCACHED}
XDEBUG_CONFIG: idekey=PHPSTORM
RUN_COMPOSER: ${RUN_COMPOSER}
webserver:
image: ${WEBSERVER}
restart: always
hostname: ${DOMAIN}
depends_on:
- php
volumes:
- ${PWD}/data/www/:/var/www/html/:cached
- ${PWD}/config/shop.conf:/etc/nginx/conf.d/default.conf
- ${PWD}/config/fastcgi_params.oxid:/etc/nginx/conf.d/fastcgi_params.oxid
- ${PWD}/config/upstreams.conf:/etc/nginx/conf.d/upstreams.conf
- ${PWD}/config/httpd.conf:/usr/local/apache2/conf/httpd.conf
ports:
- ${WEBSERVER_PORT}:80
networks:
internal:
aliases:
- ${DOMAIN}
mailhog:
image: mailhog/mailhog:latest
restart: always
ports:
- ${MAILHOG_PORT}:8025
networks:
- internal
memcached:
image: memcached:alpine
networks:
- internal
adminer:
image: adminer
restart: always
ports:
- ${ADMINER_PORT}:8080
networks:
- internal
networks:
internal: