Compare commits

...

1 Commits

Author SHA1 Message Date
Leopere
88fe26e633 Uploading baseline structure for compose overrides.
This will require some discussion, refinement and testing.
2019-07-17 19:33:33 -04:00
4 changed files with 66 additions and 0 deletions

3
.gitignore vendored
View File

@ -86,3 +86,6 @@ coverageClient/
.elasticbeanstalk/*
!.elasticbeanstalk/*.cfg.yml
!.elasticbeanstalk/*.global.yml
## Docker
docker-compose.override.yml

View File

@ -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"

View File

@ -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

View File

@ -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