Commit a71a41be authored by Ali Allaoui's avatar Ali Allaoui
Browse files

docker-compose : use a reverse proxy

add admin and js-admin containers
parent 7ff2d89e
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
db_pasteque:
restart: always
image: postgres:9-alpine
......@@ -15,22 +23,40 @@ services:
- ./sql:/docker-entrypoint-initdb.d
pasteque:
image: pasteque/pasteque:debug
container_name: pasteque
ports:
- "80:80"
environment:
- WEB_DOCUMENT_ROOT=/var/www/html/src/http/public
- WEB_DOCUMENT_INDEX=index.php
depends_on:
- db_pasteque
links:
- db_pasteque:db_pasteque
volumes:
- ./config-basic.ini:/var/www/html/config/config.ini
- ./auth:/etc/pasteque/auth
image: pasteque/pasteque:8.0-alpha4
container_name: pasteque
environment:
- WEB_DOCUMENT_ROOT=/var/www/html/src/http/public
- WEB_DOCUMENT_INDEX=index.php
- VIRTUAL_HOST=pastequeapi.docker
depends_on:
- db_pasteque
links:
- db_pasteque:db_pasteque
volumes:
- ./config-basic.ini:/var/www/html/config/config.ini
- ./auth:/etc/pasteque/auth
pasteque-admin:
image: pasteque/pasteque-admin:8.0.0
container_name: pasteque_admin
environment:
- WEB_DOCUMENT_ROOT=/var/www/html/web
- WEB_DOCUMENT_INDEX=index.php
- VIRTUAL_HOST=pasteque.docker
volumes:
- ./prod_basic.php:/var/www/html/config/prod.php
- ./dev_basic.php:/var/www/html/config/dev.php
pasteque-jsadmin:
image: pasteque/pasteque-jsadmin
container_name: pasteque_jsadmin
environment:
- VIRTUAL_HOST=pastequejs.docker
volumes:
- ./prod_basic.php:/var/www/html/config/prod.php
- ./dev_basic.php:/var/www/html/config/dev.php
volumes:
postgres_data:
driver: local
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment