-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 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
services:
jrnl-front:
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
environment:
- NUXT_PUBLIC_API_BASE=https://my.jrnl.fm
- NUXT_PUBLIC_APPLE_CLIENT_ID=${APPLE_CLIENT_ID}
- NUXT_PUBLIC_GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- NODE_ENV=production
build:
context: ./jrnl-front
dockerfile: Dockerfile
ports:
- "3000:3000"
jrnl-back:
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
environment:
- DATABASE_URL=${DATABASE_URL}
- FRONTEND_URL=https://my.jrnl.fm
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- APPLE_CLIENT_ID=${APPLE_CLIENT_ID}
- JWT_SECRET=${JWT_SECRET}
- MASTER_ENCRYPTION_KEY=${MASTER_ENCRYPTION_KEY}
build:
context: ./jrnl-back
dockerfile: Dockerfile
ports:
- "4000:4000"
volumes:
- jrnl-back-cache:/app/cache
volumes:
jrnl-back-cache: