-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·77 lines (70 loc) · 2.03 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
version: "3.7"
services:
backend:
image: node:14
command: /app/docker/start backend
env_file: .env
ports:
- "${BACKEND_BIND:-127.0.0.1}:${BACKEND_PORT:-1337}:1337"
restart: unless-stopped
volumes:
- .:/app:delegated
- ~/.npm/docker-cache:/home/node/.npm:cached
- /app/backend/.cache
- /app/backend/build
- backend_nm:/app/backend/node_modules
- backend_snm:/app/shared/node_modules
working_dir: /app/backend
frontend:
image: node:14
command: /app/docker/start frontend
environment:
NEXT_PUBLIC_BACKEND_URL: ${BACKEND_URL:-http://localhost:1337}
NEXT_PUBLIC_HCAPTCHA_SITE_KEY: ${HCAPTCHA_SITE_KEY:-}
NEXT_PUBLIC_PLAUSIBLE_DOMAIN_KEY: ${PLAUSIBLE_DOMAIN_KEY:-localhost}
NEXT_PUBLIC_PLAUSIBLE_URL: ${PLAUSIBLE_URL:-https://plausible.pujas.live}
NEXT_PUBLIC_S3_BUCKET: ${S3_BUCKET:-}
NEXT_PUBLIC_S3_ENDPOINT: ${S3_ENDPOINT:-}
NEXT_PUBLIC_SITE_NAME: ${SITE_NAME:-Pujas.test}
ports:
- "${FRONTEND_BIND:-127.0.0.1}:${FRONTEND_PORT:-3000}:3000"
restart: unless-stopped
volumes:
- .:/app:delegated
- ~/.npm/docker-cache:/home/node/.npm:cached
- /app/frontend/.next
- frontend_nm:/app/frontend/node_modules
- frontend_snm:/app/shared/node_modules
working_dir: /app/frontend
mail:
image: mahadana/mail:latest
env_file: .env
restart: unless-stopped
postgres:
image: postgres:13
environment:
POSTGRES_DB: strapi
POSTGRES_PASSWORD: strapi
POSTGRES_USER: strapi
restart: unless-stopped
redis:
image: redis:latest
restart: unless-stopped
worker:
image: node:14
command: /app/docker/start worker
env_file: .env
restart: unless-stopped
volumes:
- .:/app:delegated
- ~/.npm/docker-cache:/home/node/.npm:cached
- worker_nm:/app/worker/node_modules
- worker_snm:/app/shared/node_modules
working_dir: /app/worker
volumes:
backend_nm:
backend_snm:
frontend_nm:
frontend_snm:
worker_nm:
worker_snm: