Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phras 2836 xdebug #36

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,5 @@ jobs:
- run:
name: Reset docker stack
command: |-
docker-compose down
docker volume rm "${COMPOSE_PROJECT_NAME}_alchemy_vol" || true
docker volume rm "${COMPOSE_PROJECT_NAME}_data_vol" || true
docker volume rm "${COMPOSE_PROJECT_NAME}_db_vol" || true
docker volume rm "${COMPOSE_PROJECT_NAME}_dev_vol" || true
docker volume rm "${COMPOSE_PROJECT_NAME}_elasticsearch_vol" || true
- run:
name: Build application Docker image
command: |-
# Avoid volume creation with local binding (Docker is run on remote host on CircleCI):
docker volume create --name "${COMPOSE_PROJECT_NAME}_alchemy_vol"
bin/install.sh
cp env.dist .env
docker-compose build
15 changes: 15 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
version: "3.4"
networks:
default:
ipam:
config:
- subnet: $SUBNET_IPS

services:
phpmyadmin:
image: phpmyadmin/phpmyadmin
Expand All @@ -13,10 +19,19 @@ services:
- alchemy_vol:/var/alchemy/Phraseanet

phraseanet:
image: $PHRASEANET_DOCKER_REGISTRY/phraseanet-fpm-xdebug:$PHRASEANET_DOCKER_TAG
ports:
- $XDEBUG_PHRASEANET_PORT:9000
volumes:
- alchemy_vol:/var/alchemy/Phraseanet
environment:
- XDEBUG_CONFIG=remote_enable=1 remote_host=${GATEWAY_IP} idekey=PHPSTORM
- XDEBUG_REMOTE_HOST=${GATEWAY_IP}

worker:
image: $PHRASEANET_DOCKER_REGISTRY/phraseanet-worker-xdebug:$PHRASEANET_DOCKER_TAG
ports:
- $XDEBUG_WORKER_PORT:9000
volumes:
- alchemy_vol:/var/alchemy/Phraseanet

Expand Down
6 changes: 6 additions & 0 deletions env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@ MYSQL_MAX_ALLOWED_PACKET=16M
ALCHEMY_WORKSPACE_DIR=/var/alchemy
# PhpMyAdmin port
PHPMYADMIN_PORT=8089

XDEBUG_PHRASEANET_PORT=9001
XDEBUG_WORKER_PORT=9002

SUBNET_IPS=172.31.200.0/16
GATEWAY_IP=172.31.200.1