mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 09:14:46 +01:00
bcf427cb55
* Closes #877 chunk loading errors * Closes #877 chunk loading errors * add chunks to all webpack files, use webpack-html-plugin to make an index.html with the right names * change to contenthash for better caching * add dev server on a different port * store loaded scenes in reducer * add react-hot-loader * add react-hot-loader to all code split points * fix action pages HMR * ignore cypress screenshots * generate django login/signup page layout with webpack html plugin * move to devDependencies * expose webpack-dev-server ports * run tests on the production docker image * start webpack dev server on a custom host if requested * revert e2e to dev dockerfile * add test travis config * add stages * add travis conf * cache node and pip * node 11 * travis ci bump * node via nvm * install v12, disable cypress for a moment * remove 2 commands, test cached build time * try different yarn cache, add cypress * add postgres 12 * migrate before cypress * remove latest postgres for now * createdb before cypress * Try different port * cull packages * remove hash from main bundle filenames to not break anything * cypress port 8000 * cypress tests with production docker * don't use the /code path in e2e test, use docker image * remove hash from css to work better with editor * only one export from actions * remove travis test Co-authored-by: Marius Andra <marius.andra@gmail.com>
36 lines
810 B
YAML
36 lines
810 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: production.Dockerfile
|
|
command: ./bin/docker & tail -f /dev/null
|
|
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
|
|
OPT_OUT_CAPTURE: 1
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
links:
|
|
- db:db
|
|
- redis:redis
|