-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
137 lines (137 loc) · 3.93 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
version: '3.5'
networks:
phalcon:
driver: bridge
ipam:
config:
- subnet: 172.50.0.0/16
volumes:
data-mysql:
driver: local
services:
mysql:
image: 'library/mysql:8.0'
restart: always
container_name: '${COMPOSE_PROJECT_NAME}-mysql'
working_dir: '${COMPOSE_PROJECT_WORKING_DIR}'
command:
- '--character-set-server=utf8mb4'
- '--bind-address=0.0.0.0'
- '--default-authentication-plugin=mysql_native_password'
volumes:
- '.runtime/mysql/data:/var/lib/mysql'
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
ports:
- "3306:3306"
networks:
phalcon:
ipv4_address: ${MYSQL_HOSTNAME}
phalcon3:
build:
context: ./docker
args:
- NEST_PHP_VERSION=7.3-apache
- NEST_PHALCON_VERSION=3.4.5
- NEST_PHALCON_DEVTOOLS_VERSION=3.4.14
- NEST_PSR_VERSION=1.2.0
- INSTALL_DEVTOOLS=true
- INSTALL_NEWRELIC=true
- SSL_SUBJECT=/C=CA/ST=QC/O=ACME/CN=localhost
restart: unless-stopped
container_name: '${COMPOSE_PROJECT_NAME}-apache-phalcon3'
working_dir: '${COMPOSE_PROJECT_WORKING_DIR}'
environment:
- APACHE_DOCUMENT_ROOT=${APACHE_DOCUMENT_ROOT}
- APACHE_PUBLIC_DOCUMENT_ROOT=${APACHE_PUBLIC_DOCUMENT_ROOT}
depends_on:
- mysql
volumes:
- '.:/home'
- './docker/etc/apache2/apache2.conf:/etc/apache2/apache2.conf'
- './docker/etc/apache2/sites-available/000-default.conf:/etc/apache2/sites-available/000-default.conf'
ports:
- "80:80"
- "443:443"
- "9003:9003"
expose:
- 80
- 443
- 9003
networks:
phalcon:
ipv4_address: 172.50.0.3
phalcon4:
build:
context: ./docker
dockerfile: Dockerfile
args:
- NEST_PHP_VERSION=7.4-apache
- NEST_PHALCON_VERSION=4.1.3
- NEST_PHALCON_DEVTOOLS_VERSION=4.20.0
- NEST_PSR_VERSION=1.2.0
- INSTALL_DEVTOOLS=true
- INSTALL_NEWRELIC=true
- SSL_SUBJECT=/C=CA/ST=QC/O=ACME/CN=localhost
restart: unless-stopped
container_name: '${COMPOSE_PROJECT_NAME}apache-phalcon4'
working_dir: '${COMPOSE_PROJECT_WORKING_DIR}'
environment:
- APACHE_DOCUMENT_ROOT=${APACHE_DOCUMENT_ROOT}
- APACHE_PUBLIC_DOCUMENT_ROOT=${APACHE_PUBLIC_DOCUMENT_ROOT}
depends_on:
- mysql
volumes:
- '.:/home'
- './docker/etc/apache2/apache2.conf:/etc/apache2/apache2.conf'
- './docker/etc/apache2/sites-available/000-default.conf:/etc/apache2/sites-available/000-default.conf'
ports:
- "80:80"
- "443:443"
- "9003:9003"
expose:
- 80
- 443
- 9003
networks:
phalcon:
ipv4_address: 172.50.0.4
phalcon5:
build:
context: ./docker
dockerfile: Dockerfile
args:
- NEST_PHP_VERSION=8.0-apache
- NEST_PHALCON_VERSION=5.0.0beta2
- NEST_PHALCON_DEVTOOLS_VERSION=4.20.0 #not compatible yet
- NEST_PSR_VERSION=1.2.0
- PHALCON_EXT_PATH=phalcon
- INSTALL_DEVTOOLS=false # not compatible yet
- INSTALL_NEWRELIC=true
- SSL_SUBJECT=/C=CA/ST=QC/O=ACME/CN=localhost
restart: unless-stopped
container_name: '${COMPOSE_PROJECT_NAME}apache-phalcon5'
working_dir: '${COMPOSE_PROJECT_WORKING_DIR}'
environment:
- APACHE_DOCUMENT_ROOT=${APACHE_DOCUMENT_ROOT}
- APACHE_PUBLIC_DOCUMENT_ROOT=${APACHE_PUBLIC_DOCUMENT_ROOT}
depends_on:
- mysql
volumes:
- '.:/home'
- './docker/etc/apache2/apache2.conf:/etc/apache2/apache2.conf'
- './docker/etc/apache2/sites-available/000-default.conf:/etc/apache2/sites-available/000-default.conf'
ports:
- "80:80"
- "443:443"
- "9003:9003"
expose:
- 80
- 443
- 9003
networks:
phalcon:
ipv4_address: 172.50.0.5