Forked from robkooper/docker-compose.override.yml
Last active
December 14, 2018 22:26
-
-
Save dlebauer/4f32034e5e1e455453c5b8060319b120 to your computer and use it in GitHub Desktop.
PEcAn docker override . docker-compose -p pecan -f docker-compose.override.yml up
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
version: "3" | |
services: | |
# mount PEcAn web folder into web server, this allows for | |
# editing code in PHP and immediatly test the new code. | |
web: | |
volumes: | |
- ${HOME}/git/pecan/web:/var/www/html/pecan | |
- ${HOME}/git/pecan/docker/config.docker.php:/var/www/html/pecan/config.php | |
# mount PEcAn folder into executor, this allows for sending | |
# a rebuild command to rebuild the executor for development. | |
executor: | |
volumes: | |
- ${HOME}/git/pecan/Makefile:/pecan/Makefile | |
- ${HOME}/git/pecan/base:/pecan/base | |
- ${HOME}/git/pecan/modules:/pecan/modules | |
- ${HOME}/git/pecan/models:/pecan/models | |
# expose database to localhost for ease of access | |
postgres: | |
ports: | |
- 5432:5432 | |
# For BETY development, modify files on local machine. Do | |
# a `touch tmp/restart.txt` to reload BETY with new code. | |
bety: | |
volumes: | |
- ${HOME}/git/bety:/home/bety | |
- ${HOME}/git/bety/docker/database.yml:/home/bety/config/database.yml | |
- ${HOME}/git/bety/docker/config.ru:/home/bety/config.ru | |
# Allow to do a docker-compose build for this specific model | |
# for testing purposes. | |
sipnet: | |
build: | |
context: . | |
dockerfile: docker/models/Dockerfile.sipnet | |
# use a local subfolders in data folder to store the volumes. | |
volumes: | |
traefik: | |
driver_opts: | |
type: none | |
device: ${PWD}/data/traefik | |
o: bind | |
postgres: | |
driver_opts: | |
type: none | |
device: ${PWD}/data/postgres | |
o: bind | |
rabbitmq: | |
driver_opts: | |
type: none | |
device: ${PWD}/data/rabbitmq | |
o: bind | |
pecan: | |
driver_opts: | |
type: none | |
device: ${PWD}/data/pecan | |
o: bind | |
portainer: | |
driver_opts: | |
type: none | |
device: ${PWD}/data/portainer | |
o: bind |
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
version: "3" | |
services: | |
# expose database to localhost for ease of access | |
postgres: | |
ports: | |
- 5432:5432 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment