generated from UMM-CSci-3601/3601-iteration-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
37 lines (36 loc) · 1.14 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
version: '3.7'
services:
client:
build: ./client # Location of the Dockerfile for the client
restart: always
volumes:
- ./.caddy:/root/.caddy # to save certificates on disk
environment:
CADDY_HOST: "${APP_HOST:-localhost}" # The domain/host to serve to
CADDY_TLS: "${APP_TLS_EMAIL:-off}" # Set to email address to enable TLS
ACME_AGREE: "${APP_ACME_AGREE:-false}" # Set to true to agree to the Let's Encrypt Subscriber Agreement (https://letsencrypt.org/documents/2017.11.15-LE-SA-v1.2.pdf)
ports:
- "2015:2015"
- "80:80" # http
- "443:443" # https
depends_on:
- server
server:
build: ./server # Location of the Dockerfile for the client
restart: always
environment:
MONGO_ADDR: mongo # hostname of the mongo container
MONGO_DB: prod
WAIT_HOSTS: mongo:27017 # wait for mongo to start up before starting the server
depends_on:
- mongo
mongo:
image: mongo:3.4.23
restart: always
environment:
MONGO_DB: prod
volumes:
- mongo_data:/data/db
- ./database:/docker-entrypoint-initdb.d
volumes:
mongo_data: