forked from princesharma74/giggle-nextjs-clc3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (54 loc) · 1.02 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
version: '3.8'
services:
web:
build:
context: .
dockerfile: Dockerfile.web
ports:
- "3000:3000"
volumes:
- .:/app
- /app/node_modules
command: npm run dev
networks:
- my-network
deploy:
resources:
limits:
cpus: "0.3"
memory: "256M"
selenium:
# image: seleniarm/standalone-chromium:latest
image: selenium/standalone-chrome:latest
ports:
- "4444:4444"
restart: always
networks:
- my-network
deploy:
resources:
limits:
cpus: "0.3"
memory: "256M"
my_app:
build:
context: ./script
dockerfile: Dockerfile.script
depends_on:
- web
- selenium
environment:
- PYTHONUNBUFFERED=1
volumes:
- ./script:/app
command: python3 -u main.py >> /app/output.log 2>&1
restart: always
networks:
- my-network
deploy:
resources:
limits:
cpus: "0.3"
memory: "256M"
networks:
my-network: