forked from os2display/display-admin-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (58 loc) · 1.41 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
59
60
61
62
version: "3.4"
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:14
command: npm start
networks:
- app
working_dir: /app
environment:
- NODE_ENV=development
volumes:
- .:/app:delegated
healthcheck:
test: [ "CMD", "curl", "-f", "http://node:3000/tags" ]
interval: 5s
timeout: 10s
retries: 3
start_period: 60s
cypress:
image: cypress/included:9.5.2
networks:
- app
- frontend
depends_on:
- nginx
environment:
- CYPRESS_VIDEO=false
- CYPRESS_baseUrl=http://nginx/admin
volumes:
- .:/e2e
- /tmp/.X11-unix:/tmp/.X11-unix
working_dir: /e2e
entrypoint: cypress