-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
58 lines (54 loc) · 1.35 KB
/
docker-compose.yml
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
51
52
53
54
55
56
57
58
version: "3"
networks:
frontend:
external: true
app:
driver: bridge
internal: false
services:
nginx:
image: nginxinc/nginx-unprivileged:alpine
networks:
- app
- frontend
depends_on:
- node
ports:
- '8080'
volumes:
- ${PWD}/.docker/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./:/app:delegated
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_DOMAIN}`)"
# HTTPS config - uncomment to enable redirect from :80 to :443
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=redirect-to-https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
node:
image: node:20
command: yarn start
networks:
- app
working_dir: /app
environment:
- NODE_ENV=development
volumes:
- .:/app:delegated
cypress:
image: cypress/included:7.5.0
networks:
- app
depends_on:
- nginx
environment:
- CYPRESS_VIDEO=false
- CYPRESS_baseUrl=http://nginx:8080
# Uncomment to see console output:
#- ELECTRON_ENABLE_LOGGING=1
#- DISPLAY=host.docker.internal:0
volumes:
- .:/e2e
- /tmp/.X11-unix:/tmp/.X11-unix
working_dir: /e2e
entrypoint: cypress