mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 00:46:45 +01:00
a012aa6723
* initial test * add yaml * add logs * without tail * run again for consistency * wait longer * manuall configure cypress * use latest ubuntu * try installing all * yarn install * yarn install with cypress * full flow * run again for consistency * initial tests for trends * handle exception * separate e2e docker-compose * run on pr * trends-testing foundation * run test * don't pass everything * handle uncaught exceptions * fix dashboard tests * change email domain * change dataattr to data-attr and boilerplate cleanup * base url config * add script for test runner * change default postgres
37 lines
811 B
YAML
37 lines
811 B
YAML
version: '3'
|
|
|
|
services:
|
|
db:
|
|
image: postgres:alpine
|
|
container_name: posthog_db
|
|
environment:
|
|
POSTGRES_USER: posthog
|
|
POSTGRES_DB: posthog
|
|
POSTGRES_PASSWORD: posthog
|
|
redis:
|
|
image: "redis:alpine"
|
|
container_name: posthog_redis
|
|
web:
|
|
container_name: posthog_server
|
|
build:
|
|
context: .
|
|
dockerfile: dev.Dockerfile
|
|
command: ./bin/docker-dev & tail -f /dev/null
|
|
volumes:
|
|
- .:/code
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
IS_DOCKER: "true"
|
|
DATABASE_URL: "postgres://posthog:posthog@db:5432/posthog"
|
|
REDIS_URL: "redis://redis:6379/"
|
|
SECRET_KEY: "<randomly generated secret key>"
|
|
DEBUG: 1
|
|
DISABLE_SECURE_SSL_REDIRECT: 1
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
links:
|
|
- db:db
|
|
- redis:redis
|