-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (63 loc) · 1.77 KB
/
docker-compose.yml
File metadata and controls
67 lines (63 loc) · 1.77 KB
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
63
64
65
66
67
version: '2'
networks:
traefik:
external:
name: traefik_webgateway
services:
client:
image: node:13.12.0
restart: always
volumes:
- ./:/var/www/vierdeman
working_dir: /var/www/vierdeman
command: npm run start
networks:
- default
- traefik
labels:
- "traefik.enable=true"
- "traefik.backend=vierdeman-client-web"
- "traefik.frontend.rule=Host:vierde-man.nl.localhost"
- "traefik.port=3000"
- "traefik.docker.network=traefik_webgateway"
environment:
- REACT_APP_GAME_SERVER=http://api.vierde-man.nl.localhost
- REACT_APP_LOBBY_SERVER=http://api.vierde-man.nl.localhost
- REACT_APP_PUBLIC=true
production-client:
image: node:13.12.0
restart: always
volumes:
- ./:/var/www/vierdeman
working_dir: /var/www/vierdeman
command: npm run serve
networks:
- default
- traefik
labels:
- "traefik.enable=true"
- "traefik.backend=vierdeman-client-web"
- "traefik.frontend.rule=Host:vierde-man.nl"
- "traefik.port=5000"
- "traefik.docker.network=traefik_webgateway"
environment:
- REACT_APP_GAME_SERVER=https://api.vierde-man.nl
- REACT_APP_LOBBY_SERVER=https://api.vierde-man.nl
- REACT_APP_PUBLIC_URL=https://vierde-man.nl
- REACT_APP_PUBLIC=true
server:
image: node:13.12.0
restart: always
volumes:
- ./:/var/www/vierdeman
working_dir: /var/www/vierdeman
command: node -r esm src/server/server.js
networks:
- default
- traefik
labels:
- "traefik.enable=true"
- "traefik.backend=vierdeman-client-server"
- "traefik.frontend.rule=Host:api.vierde-man.nl.localhost"
- "traefik.port=8000"
- "traefik.docker.network=traefik_webgateway"