generated from mazgi/template.containerized-nextjs-project
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
104 lines (99 loc) · 2.61 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
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
x-service-node-ubuntu-base: &node-ubuntu-base
build: &node-ubuntu-base-build
args: &node-ubuntu-base-build-args
GID: ${GID:-0}
NODE_VERSION: ${NODE_VERSION:-18}
UID: ${UID:-0}
UBUNTU_VERSION: ${UBUNTU_VERSION:-22.04}
context: .
dockerfile: Dockerfile.d/node-ubuntu/Dockerfile
command:
- bash
- --login
- -c
- |
npm clean-install
npm run playwright:install
sleep infinity
depends_on:
- mock
environment: &node-ubuntu-base-environment
MOCK_URL: http://mock
# https://docs.docker.com/compose/compose-file/compose-file-v3/#build
# > If you specify image as well as build, then Compose names the built image with the webapp and optional tag specified in image:
image: base:${UBUNTU_VERSION:-22.04}
init: true
pull_policy: never
user: ${UID:-0}:${GID:-0}
volumes:
- home-node:/home/node
- home-root:/root # for macOS & Windows
- .:/workspace
working_dir: /workspace/webkit-driver
services:
mock:
image: nginx
init: true
# Node 18.x
webkit-driver-u22.04-n18:
<<: *node-ubuntu-base
build:
<<: *node-ubuntu-base-build
args:
<<: *node-ubuntu-base-build-args
NODE_VERSION: 18
UBUNTU_VERSION: 22.04
image: local.local/ubuntu-node:22.04-18
webkit-driver-u20.04-n18:
<<: *node-ubuntu-base
build:
<<: *node-ubuntu-base-build
args:
<<: *node-ubuntu-base-build-args
NODE_VERSION: 18
UBUNTU_VERSION: 20.04
image: local.local/ubuntu-node:20.04-18
# Node 16.x
webkit-driver-u22.04-n16:
<<: *node-ubuntu-base
build:
<<: *node-ubuntu-base-build
args:
<<: *node-ubuntu-base-build-args
NODE_VERSION: 16
UBUNTU_VERSION: 22.04
image: local.local/ubuntu-node:22.04-16
webkit-driver-u20.04-n16:
<<: *node-ubuntu-base
build:
<<: *node-ubuntu-base-build
args:
<<: *node-ubuntu-base-build-args
NODE_VERSION: 16
UBUNTU_VERSION: 20.04
image: local.local/ubuntu-node:20.04-16
# Node 14.x
webkit-driver-u22.04-n14:
<<: *node-ubuntu-base
build:
<<: *node-ubuntu-base-build
args:
<<: *node-ubuntu-base-build-args
NODE_VERSION: 14
UBUNTU_VERSION: 22.04
image: local.local/ubuntu-node:22.04-14
webkit-driver-u20.04-n14:
<<: *node-ubuntu-base
build:
<<: *node-ubuntu-base-build
args:
<<: *node-ubuntu-base-build-args
NODE_VERSION: 14
UBUNTU_VERSION: 20.04
image: local.local/ubuntu-node:20.04-14
version: "3.9"
volumes:
home-node:
driver: local
home-root:
driver: local