forked from ACalza/UofTBiohacks
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.prod.yml
55 lines (50 loc) · 980 Bytes
/
docker-compose.prod.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: '2.3'
services:
api:
build: ./server
environment:
- MONGO_HOST=db
- SENDGRID_API_KEY
- JWT_SECRET
- ADMIN_PASS
- SPA_BASE_URL
- API_BASE_URL
- MONGO_DB
- MONGO_USER
- MONGO_PASS
db:
build: ./mongo
environment:
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD
- MONGO_DB
- MONGO_USER
- MONGO_PASS
volumes:
- mongo-data:/data/db
- mongo-configdb:/data/configdb
frontend:
build:
context: ./static
target: base
volumes:
- frontend-dist:/home/node/dist
environment:
- API_BASE_URL
- RECAPTCHA_SITE_KEY
caddy:
image: abiosoft/caddy
volumes:
- frontend-dist:/srv
- ./Caddyfile.prod:/etc/Caddyfile
- .caddy:/root/.caddy
ports:
- 80:80
- 443:443
volumes:
mongo-data:
driver: local
mongo-configdb:
driver: local
frontend-dist:
driver: local