-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from adnnor/traefik-integration
Traefik Integration
- Loading branch information
Showing
50 changed files
with
1,105 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
COMPOSE_PROJECT_NAME=mood |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
phpinfo(); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
ORO_DB_URL=postgres://root:root@postgres:5432/dev?sslmode=disable&charset=utf8&serverVersion=13.7 | ||
ORO_DB_DSN=${ORO_DB_URL} | ||
|
||
MESSENGER_TRANSPORT_DSN=rabbitmq://rabbit:rabbit@rabbitmq:5672/%2f/messages | ||
|
||
|
||
###> search engine config ### | ||
ORO_SEARCH_URL=http://localhost:9200 | ||
ORO_SEARCH_ENGINE_DSN=${ORO_SEARCH_URL}?prefix=oro_search | ||
ORO_WEBSITE_SEARCH_ENGINE_DSN=${ORO_SEARCH_URL}?prefix=oro_website_search | ||
###< search engine config ### | ||
|
||
|
||
###> websocket config ### | ||
ORO_WEBSOCKET_SERVER_DSN=//0.0.0.0:8080 | ||
ORO_WEBSOCKET_FRONTEND_DSN=//*:8080/ws | ||
ORO_WEBSOCKET_BACKEND_DSN=tcp://127.0.0.1:8080 | ||
###< websocket config ### | ||
|
||
APP_DEBUG=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
upstream fastcgi_backend { | ||
server unix:/sock/docker.sock; | ||
} | ||
|
||
server { | ||
listen [::]:8000 ipv6only=on; | ||
listen 8000; | ||
|
||
root /var/www/html/public; | ||
|
||
index index.php; | ||
autoindex off; | ||
charset off; | ||
|
||
fastcgi_buffer_size 64k; | ||
fastcgi_buffers 8 128k; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.php?$args; | ||
} | ||
|
||
location ~ \.php$ { | ||
try_files $uri =404; | ||
fastcgi_pass fastcgi_backend; | ||
fastcgi_index index.php; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
include fastcgi_params; | ||
} | ||
} | ||
|
||
server { | ||
listen [::]:8443 ssl http2 ipv6only=on; | ||
listen 8443 ssl http2; | ||
|
||
ssl_certificate /etc/nginx/certs/nginx.crt; | ||
ssl_certificate_key /etc/nginx/certs/nginx.key; | ||
|
||
root /var/www/html/public; | ||
|
||
index index.php; | ||
autoindex off; | ||
charset off; | ||
|
||
fastcgi_buffer_size 64k; | ||
fastcgi_buffers 8 128k; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.php?$args; | ||
} | ||
|
||
location ~ \.php$ { | ||
try_files $uri =404; | ||
fastcgi_pass fastcgi_backend; | ||
fastcgi_index index.php; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
include fastcgi_params; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[unix_http_server] | ||
file=/tmp/supervisor.sock | ||
|
||
[supervisord] | ||
logfile=/var/log/supervisor/supervisord.log | ||
loglevel=info | ||
pidfile=/var/run/supervisor/supervisord.pid | ||
|
||
[supervisorctl] | ||
serverurl=unix:///tmp/supervisor.sock | ||
|
||
[rpcinterface:supervisor] | ||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface | ||
|
||
[program:oro_web_socket] | ||
command=/usr/local/bin/php /var/www/html/bin/console gos:websocket:server --env=prod | ||
numprocs=1 | ||
autostart=true | ||
autorestart=true | ||
directory=/var/www/html | ||
user=app | ||
redirect_stderr=true | ||
|
||
[program:oro_message_consumer] | ||
command=/usr/local/bin/php /var/www/html/bin/console oro:message-queue:consume --env=prod | ||
process_name=%(program_name)s_%(process_num)02d | ||
numprocs=5 | ||
autostart=true | ||
autorestart=true | ||
directory=/var/www/html | ||
user=app | ||
redirect_stderr=true |
Oops, something went wrong.