-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert: unnecessary docker compose changes
- Loading branch information
1 parent
e3c06e3
commit abc283b
Showing
1 changed file
with
18 additions
and
14 deletions.
There are no files selected for viewing
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
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 |