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' version: '2'
services: 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: db_pasteque:
restart: always restart: always
image: postgres:9-alpine image: postgres:9-alpine
...@@ -15,22 +23,40 @@ services: ...@@ -15,22 +23,40 @@ services:
- ./sql:/docker-entrypoint-initdb.d - ./sql:/docker-entrypoint-initdb.d
pasteque: pasteque:
image: pasteque/pasteque:debug image: pasteque/pasteque:8.0-alpha4
container_name: pasteque container_name: pasteque
ports: environment:
- "80:80" - WEB_DOCUMENT_ROOT=/var/www/html/src/http/public
environment: - WEB_DOCUMENT_INDEX=index.php
- WEB_DOCUMENT_ROOT=/var/www/html/src/http/public - VIRTUAL_HOST=pastequeapi.docker
- WEB_DOCUMENT_INDEX=index.php depends_on:
depends_on: - db_pasteque
- db_pasteque links:
links: - db_pasteque:db_pasteque
- db_pasteque:db_pasteque volumes:
volumes: - ./config-basic.ini:/var/www/html/config/config.ini
- ./config-basic.ini:/var/www/html/config/config.ini - ./auth:/etc/pasteque/auth
- ./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: volumes:
postgres_data: postgres_data:
driver: local 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