-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.13 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
version: "3.8"
# Example Base
#
# Every example's common configuration they all inherit from
x-base: &base
image: node:18
networks:
core:
volumes:
- .:/app
working_dir: /app
environment:
- VITE_UB_TOKEN
- VITE_UB_DOMAIN
services:
# Example Services
#
# Each example will be listed here and run over port 3000 on the `core` networks
# to allow playwright docker to access all examples.
example-widget:
<<: *base
command: yarn workspace example-js run serve
example-react:
<<: *base
command: yarn workspace example-react run serve
example-vue:
<<: *base
command: yarn workspace example-vue run serve
example-vue2:
<<: *base
command: yarn workspace example-vue2 run serve
example-nuxt2:
<<: *base
command: yarn workspace example-nuxt2 run serve
example-nuxt:
<<: *base
command: yarn workspace example-nuxt run serve
# Playwright task
#
# Uses profiles to only enable e2e testing when using `docker compose run --rm playwright`
playwright:
build:
context: .
target: e2e
networks:
- core
profiles: ["e2e"]
networks:
core: