forked from codelitdev/courselit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (77 loc) · 2.8 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
78
79
80
81
version: "3"
services:
db:
image: mongo
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_ROOT_USERNAME?'MONGO_ROOT_USERNAME environment variable is not defined'}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASSWORD?'MONGO_ROOT_PASSWORD environment variable is not defined'}
volumes:
- ${MEDIA_FOLDER?'MEDIA_FOLDER environment variable is not defined'}/mongo/data/db:/data/db
command: --quiet
container_name: db
logging:
driver: "none"
backend:
image: codelit/courselit-backend:${TAG?'TAG environment variable is not defined'}
environment:
- NODE_ENV=production
- API_PREFIX=${API_PREFIX}
- DB_CONNECTION_STRING=${DB_CONNECTION_STRING?'DB_CONNECTION_STRING environment variable is is not defined'}
- JWT_SECRET=${JWT_SECRET?'JWT_SECRET environment variable is not defined'}
- TEMP_DIR_FOR_UPLOADS=${TEMP_DIR_FOR_UPLOADS?'TEMP_DIR_FOR_UPLOADS environment variable is not defined'}
- JWT_EXPIRES_IN=${JWT_EXPIRES_IN}
- USE_WEBP=${USE_WEBP}
- USER_CONTENT_DIRECTORY=/data
- PORT=8000
- DOMAIN=${DOMAIN}
- MULTITENANT=${MULTITENANT}
- USE_CLOUD_STORAGE=${USE_CLOUD_STORAGE}
- CLOUD_ENDPOINT=${CLOUD_ENDPOINT}
- CDN_ENDPOINT=${CDN_ENDPOINT}
- CLOUD_REGION=${CLOUD_REGION}
- CLOUD_KEY=${CLOUD_KEY}
- CLOUD_SECRET=${CLOUD_SECRET}
- CLOUD_BUCKET_NAME=${CLOUD_BUCKET_NAME}
- EMAIL_HOST=${EMAIL_HOST?'EMAIL_HOST environment variable is not defined'}
- EMAIL_USER=${EMAIL_USER?'EMAIL_USER environment variable is not defined'}
- EMAIL_PASS=${EMAIL_PASS?'EMAIL_PASS environment variable is not defined'}
- EMAIL_FROM=${EMAIL_FROM?'EMAIL_FROM environment variable is not defined'}
- EMAIL_PORT=${EMAIL_PORT}
volumes:
- ${MEDIA_FOLDER?'MEDIA_FOLDER environment variable is not defined'}:/data
expose:
- "8000"
depends_on:
- db
container_name: backend
restart: always
frontend:
image: codelit/courselit-frontend:${TAG?'TAG environment variable is not defined'}
environment:
- NODE_ENV=production
- API_PREFIX=${API_PREFIX}
- INSECURE=${INSECURE}
expose:
- "3000"
depends_on:
- backend
container_name: frontend
restart: on-failure
proxy:
image: codelit/courselit-proxy:${TAG?'TAG environment variable is not defined'}
ports:
- "80:80"
- "443:443"
environment:
- API_PREFIX=${API_PREFIX}
volumes:
- "./Caddyfile:/etc/caddy/Caddyfile"
- ${MEDIA_FOLDER?'MEDIA_FOLDER environment variable is not defined'}/caddy/data:/data
- ${MEDIA_FOLDER?'MEDIA_FOLDER environment variable is not defined'}/caddy/config:/config
depends_on:
- backend
- frontend
container_name: proxy
restart: on-failure