diff --git a/docker-compose.yml b/docker-compose.yml index 4b619de0..1edce91c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,26 +1,22 @@ version: "3" services: redis: - restart: always image: redis - networks: - - back-tier mongo: - restart: always image: mongo - volumes: - - ".data/mongo:/data" - networks: - - back-tier + volumes: + - "./data/mongo:/data" tellform: build: context: . environment: CREATE_ADMIN: "TRUE" + SOCKET_PORT: "5000" + SOCKET_PORT_EXTERN_VISIBLE: "TRUE" MONGODB_URI: mongodb://mongo/tellform REDIS_URL: redis://redis -# volumes: -# - .:/opt/tellform + MAILER_SMTP_HOST: mail + MAILER_SMTP_PORT: 1025 links: - mongo - redis @@ -29,27 +25,7 @@ services: depends_on: - mongo - redis - networks: - - back-tier - web: - # image: tellform/nginx:stable - build: - context: ./nginx - # image: nginx:1.13 - restart: always + mail: + image: mailhog/mailhog ports: - - "80:80" - - "443:443" - - "20523:20523" - environment: - NODE_ENV: development - #volumes: - # - "$ROOT/certs:/certs" - # - ./nginx/conf.d:/etc/nginx/conf.d - networks: - - back-tier - -networks: - back-tier: - driver: bridge - + - "5050:8025"