forked from PSU-CapstoneBrownHope/BrownHopeAidApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
44 lines (41 loc) · 842 Bytes
/
docker-compose.dev.yml
File metadata and controls
44 lines (41 loc) · 842 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# this and other docker infra adapted from: https://github.com/karlkeefer/pngr
version: '3.4'
services:
# back-end api build
back:
build:
context: back
target: dev
volumes:
- ./back:/root
ports:
- "5000:5000"
env_file: ./back/.env
# front-end build
front:
build:
context: frontend
target: dev
volumes:
- ./frontend:/root
ports:
- "3000:3000"
# nginx
nginx:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx_dev/:/etc/nginx/
- ./certbot/www:/var/www/certbot/
- ./certbot/conf/:/etc/nginx/ssl/
depends_on:
- front
- back
# certbot
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/
- ./certbot/conf/:/etc/letsencrypt/