mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
working compose file for cypress
This commit is contained in:
parent
44d8606d1a
commit
14c0c5060a
4 changed files with 11 additions and 11 deletions
|
|
@ -1,11 +0,0 @@
|
|||
import { defineConfig } from 'cypress';
|
||||
|
||||
export default defineConfig({
|
||||
e2e: {
|
||||
baseUrl: 'http://localhost:3000',
|
||||
},
|
||||
env: {
|
||||
umami_user: 'admin',
|
||||
umami_password: 'pennydoodoo',
|
||||
},
|
||||
});
|
||||
|
|
@ -2,7 +2,8 @@
|
|||
version: '3'
|
||||
services:
|
||||
umami:
|
||||
image: ghcr.io/umami-software/umami:postgresql-latest
|
||||
build: ../
|
||||
#image: ghcr.io/umami-software/umami:postgresql-latest
|
||||
ports:
|
||||
- '3000:3000'
|
||||
environment:
|
||||
|
|
@ -38,10 +39,13 @@ services:
|
|||
- umami
|
||||
- db
|
||||
environment:
|
||||
- CYPRESS_baseUrl=http://localhost:3000
|
||||
entrypoint: /bin/sh -c "yarn install"
|
||||
working_dir: /cypress
|
||||
- CYPRESS_baseUrl=http://umami:3000
|
||||
- CYPRESS_umami_user=admin
|
||||
- CYPRESS_umami_password=umami
|
||||
volumes:
|
||||
- ../tsconfig.json:/tsconfig.json
|
||||
- ../cypress.config.ts:/cypress.config.ts
|
||||
- ./:/cypress
|
||||
- ../node_modules/:/node_modules
|
||||
volumes:
|
||||
umami-db-data:
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@
|
|||
"lib": ["es5", "dom"],
|
||||
"types": ["cypress", "node"]
|
||||
},
|
||||
"include": ["**/*.ts"]
|
||||
"include": ["**/*.ts", "../cypress.config.ts"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue