Skip to content

Commit

Permalink
revert: unnecessary docker compose changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamPalriwala committed Jul 17, 2023
1 parent e3c06e3 commit abc283b
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
version: "3.3"
services:
postgres:
restart: always
image: postgres:15-alpine
volumes:
- formbricks-postgres:/var/lib/postgresql/data
- postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432

mailhog:
image: mailhog/mailhog
# network_mode: service:app
logging:
driver: "none" # disable saving logs
ports:
- 8025:8025 # web ui
- 1025:1025 # smtp server
formbricks:
restart: always
build:
context: .
dockerfile: ./apps/web/Dockerfile
depends_on:
- postgres
env_file:
- .env
labels:
- "traefik.enable=true"
- "traefik.http.routers.formbricks.rule=Host(`api.example.com`)" # TODO: Change with your own domain
- "traefik.http.routers.formbricks.tls.certresolver=default"
- "traefik.http.routers.formbricks.entrypoints=websecure"
- "traefik.http.services.formbricks.loadbalancer.server.port=3000"

volumes:
formbricks-postgres:
postgres:
driver: local

0 comments on commit abc283b

Please sign in to comment.