forked from csci620/app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (24 loc) · 787 Bytes
/
docker-compose.yml
File metadata and controls
27 lines (24 loc) · 787 Bytes
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
version: '3.0' # specify docker-compose version
# Define the services/ containers to be run
services:
ui: # name of the first service
build: ui # specify the directory of the Dockerfile
# image: nginx:1.17.1-alpine
ports:
- "4200:80" # specify port mapping
- "443:443"
volumes:
- ./ssl/mybooks.com.crt:/etc/nginx/mybooks.com.crt
- ./ssl/mybooks.com.key:/etc/nginx/mybooks.com.key
api: # name of the second service
build: api # specify the directory of the Dockerfile
ports:
- "3000:3000" #specify ports mapping
links:
- database # link this service to the database service
database: # name of the third service
image: mongo # specify image to build container from
ports:
- "27017:27017" # specify port forwarding
certbot:
image: certbot/certbot