-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.debug.yml
66 lines (66 loc) · 1.81 KB
/
docker-compose.debug.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
services:
backend:
build:
context: .
command: yarn server:debug
user: ${CURRENT_USER:-root}
ports:
- "8080:8080"
- "9229:9229"
depends_on:
- db
- redis
environment:
- POSTGRES_HOST=postgres_docker
- REDIS_HOST=redis
- SMTP_HOST=mailcatcher
# On an M1 mac, puppeteer install fails with the message:
# "The chromium binary is not available for arm64"
#
# The below instructs the container to skip downloading chromium and use the host's binary instead.
# If you're not on an M1 mac, you can comment this out or just leave it, the undefined exports will have no effect.
#
# In ~/.zshrc (in my case) add:
# export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
# export PUPPETEER_EXECUTABLE_PATH=`which chromium`
- PUPPETEER_EXECUTABLE_PATH
- PUPPETEER_SKIP_CHROMIUM_DOWNLOAD
volumes:
- ".:/app:rw"
- "node_modules-backend:/app/node_modules:rw"
- "yarn-cache:/home/node/.cache/yarn:rw"
deploy:
resources:
limits:
memory: 1024M
frontend:
build:
context: .
command: yarn start
user: ${CURRENT_USER:-root}
stdin_open: true
ports:
- "3000:3000"
volumes:
- "./frontend:/app:rw"
- "./scripts:/app/scripts"
- "node_modules-frontend:/app/node_modules:rw"
- "yarn-cache:/home/node/.cache/yarn:rw"
environment:
- BACKEND_PROXY=http://backend:8080
worker:
build:
context: .
command: yarn worker
env_file: .env
depends_on:
- db
- redis
environment:
- POSTGRES_HOST=postgres_docker
- REDIS_HOST=redis
- SMTP_HOST=mailcatcher
volumes:
- ".:/app:rw"
- "node_modules-backend:/app/node_modules:rw"
- "yarn-cache:/home/node/.cache/yarn:rw"