forked from UserOfficeProject/user-office-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.e2e.yaml
50 lines (49 loc) · 1.38 KB
/
docker-compose.e2e.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Use postgres/example user/password credentials
version: "3.1"
services:
proxy:
image: traefik:1.7 # The official Traefik docker image
command: --api --docker # Enables the web UI and tells Traefik to listen to docker
ports:
- "80:80" # The HTTP port
- "8080:8080" # The Web UI (enabled by --api)
volumes:
- /var/run/docker.sock:/var/run/docker.sock
db:
build:
context: ./
dockerfile: "./cypress/Dockerfile.psql"
restart: always
environment:
POSTGRES_PASSWORD: duopassword
POSTGRES_USER: duouser
POSTGRES_DB: duo
backend:
image: dmsc/duo-backend:$TAG
environment:
DATABASE_URL: postgres://duouser:duopassword@db:5432/duo
secret: qMyLZALzs229ybdQXNyzYRdju7X784TH
tokenLife: 7d
baseURL: localhost:3000
SPARKPOST_TOKEN: dummytoken
NODE_ENV: development
labels:
- "traefik.frontend.rule=PathPrefix:/api, /graphql, /downloads, /files, /proposal, /uploads"
- "traefik.port=4000"
depends_on:
- db
frontend:
image: dmsc/duo-frontend
labels:
- "traefik.frontend.rule=PathPrefix:/"
- "traefik.port=80"
depends_on:
- backend
cypress:
environment:
CYPRESS_SVC_ACC_TOKEN: $SVC_ACC_TOKEN
ipc: host
build: ./cypress
command: ["./wait-for-frontend.sh", "frontend:80", "cypress run"]
depends_on:
- frontend