-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.1 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
version: "3"
networks:
frontend:
external: true
app:
driver: bridge
internal: false
services:
nginx:
image: nginx:latest
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}`)"
node:
image: node:20
command: yarn start
# @TODO: Fix setup so the ws connection between browser and webpack-dev-server can be achieved without exposing port.
# ports:
# - '3000:3000'
networks:
- app
working_dir: /app
volumes:
- ./:/app
cypress:
image: cypress/included:12.7.0
networks:
- app
- frontend
depends_on:
- nginx
environment:
- CYPRESS_VIDEO=false
- CYPRESS_baseUrl=http://nginx:80/
volumes:
- .:/e2e
- /tmp/.X11-unix:/tmp/.X11-unix
working_dir: /e2e
entrypoint: cypress