-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction.yml
executable file
·48 lines (44 loc) · 976 Bytes
/
production.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
symfony_prod:
extends:
file: common.yml
service: symfony
container_name: symfony_prod
links:
- mysql_prod
environment:
SYMFONY_ENV: prod
nginx_prod:
extends:
file: common.yml
service: nginx
container_name: nginx_prod
restart: always
links:
- fpm_prod
volumes:
- ./nginx/nginx_production.conf:/etc/nginx/conf.d/default.conf
environment:
VIRTUAL_HOST: www.teajut.ro
fpm_prod:
extends:
file: common.yml
service: fpm
restart: always
container_name: fpm_prod
links:
- mysql_prod
entrypoint: /start_fpm.sh
# command: php-fpm --allow-to-run-as-root
volumes:
- ./php/xdebug_prod.ini:/usr/local/etc/php/conf.d/xdebug.ini
- ./php/fpm_prod.conf:/usr/local/etc/php-fpm.conf
- ./php/start_fpm_prod.sh:/start_fpm.sh
- ./php/cronfile:/cronfile
volumes_from:
- symfony_prod
mysql_prod:
extends:
file: common.yml
service: mysql
restart: always
container_name: mysql_prod