-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
119 lines (112 loc) · 3.13 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
version: '3'
networks:
backend:
driver: bridge
volumes:
mysql:
driver: local
services:
### Workspace Utilities ################################################################################################
workspace:
build:
context: ./docker/workspace
args:
- SYMFODOCK_PHP_VERSION=7.4
- INSTALL_XDEBUG=true
- INSTALL_SSH2=false
- INSTALL_AMQP=false
- INSTALL_PHPREDIS=true
- INSTALL_NODE=true
- INSTALL_YARN=true
- INSTALL_V8JS=false
- INSTALL_WORKSPACE_SSH=false
- INSTALL_SYMFONY=true
- INSTALL_PYTHON=true
- INSTALL_PG_CLIENT=false
- INSTALL_MYSQL_CLIENT=false
- INSTALL_PING=true
- PUID=1000
- PGID=1000
- CHROME_DRIVER_VERSION=2.42
- NODE_VERSION=node
- YARN_VERSION=latest
- TZ=UTC
- INSTALL_SUPERVISOR=false
- http_proxy
- https_proxy
- no_proxy
volumes:
- ./:/var/www:cached
ports:
- "2222:22"
tty: true
networks:
- backend
### PHP-FPM ############################################################################################################
php-fpm:
build:
context: ./docker/php-fpm
args:
- SYMFODOCK_PHP_VERSION=7.4
- INSTALL_SSH2=false
- INSTALL_AMQP=false
- INSTALL_PHPREDIS=false
- INSTALL_MYSQLI=true
- INSTALL_PGSQL=false
- INSTALL_PG_CLIENT=false
- INSTALL_ADDITIONAL_LOCALES=false
- INSTALL_MYSQL_CLIENT=false
- INSTALL_PING=true
- ADDITIONAL_LOCALES="es_ES.UTF-8 fr_FR.UTF-8"
- PUID=1000
- PGID=1000
- http_proxy
- https_proxy
- no_proxy
volumes:
- ./docker/php-fpm/php7.4.ini:/usr/local/etc/php/php.ini
- ./:/var/www:cached
expose:
- "9000"
depends_on:
- workspace
networks:
- backend
### NGINX Server #######################################################################################################
nginx:
build:
context: ./docker/nginx
args:
- PHP_UPSTREAM_CONTAINER=php-fpm
- PHP_UPSTREAM_PORT=9000
- http_proxy
- https_proxy
- no_proxy
volumes:
- ./:/var/www:cached
- ./docker/logs/nginx/:/var/log/nginx
- ./docker/nginx/sites/:/etc/nginx/sites-available
- ./docker/nginx/ssl/:/etc/nginx/ssl
ports:
- "80:80"
- "443:443"
depends_on:
- php-fpm
networks:
- backend
### MySQL ##############################################################################################################
mysql:
build:
context: ./docker/mysql
args:
- MYSQL_VERSION=latest
environment:
- MYSQL_DATABASE=dev_alizon_v2
- MYSQL_ROOT_PASSWORD=root
- TZ=UTC
volumes:
- ./docker/data/mysql:/var/lib/mysql
ports:
- "3306:3306"
networks:
- backend