-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (29 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
32 lines (29 loc) · 1.03 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
version: '3.8'
services:
gologin-browser:
image: node:18-bullseye
platform: linux/amd64
container_name: gologin-browser
working_dir: /app
volumes:
- .:/app
- node_modules_cache:/app/node_modules
environment:
- GL_API_TOKEN=your_token_here
- NODE_ENV=development
ports:
- "9222:9222"
command: >
sh -c "
apt-get update &&
apt-get install -y libnss3 libatk-bridge2.0-0 libdrm2 libxkbcommon0 libgbm1 libxss1 libasound2 fonts-liberation libcups2 libxcomposite1 libxdamage1 libxrandr2 libxfixes3 libxtst6 libxi6 libx11-xcb1 libx11-6 libxcb1 libxext6 libxrender1 libcairo2 libglib2.0-0 libgtk-3-0 libgdk-pixbuf2.0-0 libpango-1.0-0 libpangocairo-1.0-0 libatk1.0-0 libcairo-gobject2 libgconf-2-4 libxshmfence1 libgl1-mesa-glx libgl1-mesa-dri libegl1-mesa libxau6 libxdmcp6 libappindicator3-1 xdg-utils &&
npm install &&
npm run test:e2e
"
networks:
- gologin-network
volumes:
node_modules_cache:
networks:
gologin-network:
driver: bridge