forked from workadventure/workadventure
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.e2e.yml
More file actions
128 lines (122 loc) · 3.6 KB
/
Copy pathdocker-compose.e2e.yml
File metadata and controls
128 lines (122 loc) · 3.6 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: "3.6"
services:
# overrides for e2e tests to be closer to production
# use with command:
# docker-compose -f docker-compose.yaml -f docker-compose.e2e.yml up -d --build
reverse-proxy:
depends_on:
play:
condition: service_healthy
back:
condition: service_healthy
play:
image: ghcr.io/workadventure/play-dev-build:amd64-${GITHUB_SHA}
build:
context: ./
dockerfile: play/Dockerfile
cache_from:
- ghcr.io/workadventure/play-dev-build:amd64-${GITHUB_SHA}
args:
BUILDKIT_INLINE_CACHE: 1
working_dir: /usr/src/play
command: npm run start
volumes: []
environment:
ENABLE_OPENAPI_ENDPOINT: "true"
STARTUP_COMMAND_0: ""
STARTUP_COMMAND_1: ""
STARTUP_COMMAND_2: ""
STARTUP_COMMAND_3: ""
STARTUP_COMMAND_4: ""
STARTUP_COMMAND_5: ""
MAP_EDITOR_ALLOWED_USERS: ""
MAP_EDITOR_ALLOW_ALL_USERS: "false"
OPID_SCOPE: profile openid email tags-scope
# Increasing Woka speed to make tests faster
WOKA_SPEED: 27
labels:
- "traefik.enable=true"
- "traefik.http.routers.play.rule=Host(`play.workadventure.localhost`)"
- "traefik.http.routers.play.entryPoints=web"
- "traefik.http.services.play.loadbalancer.server.port=3000"
back:
image: ghcr.io/workadventure/back-dev-build:amd64-${GITHUB_SHA}
build:
context: ./
dockerfile: back/Dockerfile
cache_from:
- ghcr.io/workadventure/back-dev-build:amd64-${GITHUB_SHA}
args:
BUILDKIT_INLINE_CACHE: 1
command: npm run runprod
working_dir: /usr/src/back
volumes: []
environment:
ENABLE_OPENAPI_ENDPOINT: "false"
STARTUP_COMMAND_0: ""
STARTUP_COMMAND_1: ""
STARTUP_COMMAND_2: ""
map-storage:
image: ghcr.io/workadventure/map-storage-dev-build:amd64-${GITHUB_SHA}
build:
context: ./
dockerfile: map-storage/Dockerfile
cache_from:
- ghcr.io/workadventure/map-storage-dev-build:amd64-${GITHUB_SHA}
args:
BUILDKIT_INLINE_CACHE: 1
working_dir: /usr/src/map-storage
command: npm run start
volumes: []
environment:
STARTUP_COMMAND_1: ""
STARTUP_COMMAND_2: ""
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000/ping" ]
interval: 5s
timeout: 5s
start_period: 3s
retries: 20
maps:
image: ghcr.io/workadventure/maps-dev-build:amd64-${GITHUB_SHA}
build:
context: maps/
cache_from:
- ghcr.io/workadventure/maps-dev-build:amd64-${GITHUB_SHA}
args:
BUILDKIT_INLINE_CACHE: 1
volumes: []
environment:
STARTUP_COMMAND_0: ""
STARTUP_COMMAND_1: ""
uploader:
image: ghcr.io/workadventure/uploader-dev-build:amd64-${GITHUB_SHA}
build:
context: ./
dockerfile: uploader/Dockerfile
cache_from:
- ghcr.io/workadventure/uploader-dev-build:amd64-${GITHUB_SHA}
args:
BUILDKIT_INLINE_CACHE: 1
working_dir: /usr/src/uploader
command: npm run start
volumes: []
environment:
ENABLE_OPENAPI_ENDPOINT: "false"
STARTUP_COMMAND_1: ""
synapse:
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8008" ]
interval: 5s
timeout: 5s
start_period: 3s
retries: 20
everything_started:
image: alpine:3.14
command: echo "Everything started"
depends_on:
# Actually, we only check the start of the map-storage because this is the first thing we need (to upload the maps)
map-storage:
condition: service_healthy
synapse:
condition: service_healthy