diff --git a/.gitignore b/.gitignore index 76008bce..47ce0c8b 100755 --- a/.gitignore +++ b/.gitignore @@ -86,3 +86,6 @@ coverageClient/ .elasticbeanstalk/* !.elasticbeanstalk/*.cfg.yml !.elasticbeanstalk/*.global.yml + +## Docker +docker-compose.override.yml diff --git a/docker/overrides/mailhog.yml b/docker/overrides/mailhog.yml new file mode 100644 index 00000000..aabc1083 --- /dev/null +++ b/docker/overrides/mailhog.yml @@ -0,0 +1,27 @@ +version: "3" +services: + tellform: + image: ohmyform/ohmyform + environment: + CREATE_ADMIN: "TRUE" + SOCKET_URL: 'localhost:5000' + SOCKET_PORT: "5000" + SOCKET_PORT_EXTERN_VISIBLE: "TRUE" + MONGODB_URI: mongodb://mongo/tellform + REDIS_URL: redis://redis + MAILER_SMTP_HOST: mail + MAILER_SMTP_PORT: 1025 + # command: grunt dev # override command to have livereloading on file change + links: + - mongo + - redis + - mail + ports: + - "5000:5000" + depends_on: + - mongo + - redis + mail: + image: mailhog/mailhog + ports: + - "5050:8025" diff --git a/docker/overrides/mongoexpress.yml b/docker/overrides/mongoexpress.yml new file mode 100644 index 00000000..6e8b585c --- /dev/null +++ b/docker/overrides/mongoexpress.yml @@ -0,0 +1,13 @@ +## TODO: add a compose examples directory with various deployment options. +version: "3" +services: + mongoexpress: + image: mongo-express + environment: + ME_CONFIG_MONGODB_SERVER: mongo + ports: + - "5051:8081" + links: + - mongo + depends_on: + - mongo diff --git a/docker/overrides/traefik.yml b/docker/overrides/traefik.yml new file mode 100644 index 00000000..b94bc1c4 --- /dev/null +++ b/docker/overrides/traefik.yml @@ -0,0 +1,23 @@ +version: "3" +services: + redis: + image: redis + mongo: + image: mongo + volumes: + - "./data/mongo:/data" + tellform: + expose: + - 5000 + ports: + - "127.0.0.1:5000:5000" + mail: + ports: + - "127.0.0.1:5050:8025" + expose: + - 8025 + mongoexpress: + ports: + - "127.0.0.1:5051:8081" + expose: + - 8081