forked from map-of-pi/map-of-pi-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (52 loc) · 1.57 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
version: "3.9"
services:
reverse-proxy:
build: ./reverse-proxy
environment:
HTTPS: ${HTTPS}
FRONTEND_DOMAIN_NAME: ${FRONTEND_DOMAIN_NAME}
BACKEND_DOMAIN_NAME: ${BACKEND_DOMAIN_NAME}
DOMAIN_VALIDATION_KEY: ${DOMAIN_VALIDATION_KEY}
ports:
- "80:80"
- "443:443"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- ${DATA_DIRECTORY}/reverse-proxy/etc-letsencrypt:/etc/letsencrypt/
frontend:
build: ./frontend
environment:
NODE_ENV: ${NODE_ENV}
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
NEXT_PUBLIC_SENTRY_DSN: ${NEXT_PUBLIC_SENTRY_DSN}
backend:
build: ./backend
environment:
NODE_ENV: ${NODE_ENV}
JWT_SECRET: ${JWT_SECRET}
PLATFORM_API_URL: ${PLATFORM_API_URL}
PI_API_KEY: ${PI_API_KEY}
MONGODB_URL: ${MONGODB_URL}
SENTRY_DSN: ${SENTRY_DSN}
PORT: ${PORT}
UPLOAD_PATH: ${UPLOAD_PATH}
CLOUDINARY_CLOUD_NAME: ${CLOUDINARY_CLOUD_NAME}
CLOUDINARY_API_KEY: ${CLOUDINARY_API_KEY}
CLOUDINARY_API_SECRET: ${CLOUDINARY_API_SECRET}
CLOUDINARY_PLACEHOLDER_URL: ${CLOUDINARY_PLACEHOLDER_URL}
DEVELOPMENT_URL: ${DEVELOPMENT_URL}
PRODUCTION_URL: ${PRODUCTION_URL}
CORS_ORIGIN_URL: ${CORS_ORIGIN_URL}
mongo:
image: mongo:5.0
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
ports:
- 27027:27017
volumes:
- ${DATA_DIRECTORY}/mongo/data:/data/db