-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.46 KB
/
docker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.46 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
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
version: "3"
services:
server:
image: ${DOCKER_REGISTRY_URL}/jamal/server
container_name: jamal-server
platform: ${DOCKER_PLATFORM}
build:
context: .
dockerfile: ./apps/server/Dockerfile
env_file:
- .env
volumes:
- ./apps/server/.wwebjs_auth:/app/apps/server/.wwebjs_auth
- ./packages/db/prisma:/app/packages/db/prisma
deploy:
restart_policy:
condition: on-failure
max_attempts: 10
web:
image: ${DOCKER_REGISTRY_URL}/jamal/web
container_name: jamal-web
platform: ${DOCKER_PLATFORM}
build:
context: .
dockerfile: ./apps/web/Dockerfile
args:
- NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL}
- NEXT_PUBLIC_FRONTEND_URL=${NEXT_PUBLIC_FRONTEND_URL}
deploy:
restart_policy:
condition: on-failure
max_attempts: 10
redis:
container_name: jamal-redis
image: redis:alpine
ports:
- "6379:6379"
postgres:
image: postgres:alpine
container_name: jamal-postgres
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- ./data/clusters/pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
deploy:
restart_policy:
condition: on-failure
max_attempts: 10