-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.prod.yaml
57 lines (54 loc) · 1.34 KB
/
docker-compose.prod.yaml
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
version: "3.8"
services:
orgnote_backend:
restart: always
container_name: orgnote_backend
build:
context: .
dockerfile: Dockerfile
ports:
- 3000:3000
networks:
- orgnote_network
depends_on:
- orgnote_mongo
volumes:
- ./media:/workspace/media
env_file:
- .env
environment:
- MONGO_USERNAME=${MONGO_USERNAME}
- MONGO_URL=orgnote_mongo
- MONGO_PASSWORD=${MONGO_PASSWORD}
- MONGO_PORT=27017
- APP_ADDRESS=0.0.0.0:3000
- GITHUB_ID=${GITHUB_ID}
- GITHUB_SECRET=${GITHUB_SECRET}
- BACKEND_DOMAIN=${BACKEND_DOMAIN}
- BACKEND_SCHEMA=${BACKEND_SCHEMA}
- BACKEND_PORT=${BACKEND_PORT}
- CLIENT_ADDRESS=${CLIENT_ADDRESS}
- ACCESS_CHECK_URL=${ACCESS_CHECK_URL}
- ACCESS_CHECK_TOKEN=${ACCESS_CHECK_TOKEN}
orgnote_nginx:
restart: always
container_name: orgnote_nginx
image: nginx:stable
ports:
- 80:80
expose:
- 80
volumes:
- ~/frontend-build:/opt/services/frontend:rw
- ./deploy/nginx/conf.d:/etc/nginx/conf.d:rw
- ./media:/opt/services/backend/media:rw
depends_on:
- orgnote_backend
links:
- orgnote_backend
networks:
- orgnote_network
command: ["/usr/sbin/nginx", "-g", "daemon off;"]
networks:
orgnote_network:
driver: bridge