-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path_docker-compose.yml
More file actions
66 lines (61 loc) · 1.34 KB
/
_docker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.34 KB
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
58
59
60
61
62
63
64
65
66
services:
back-end:
build:
context: back-end
dockerfile: Dockerfile
network: host
ports:
- 8080:8080
environment:
spring.profiles.active: prod
db.url: jdbc:mysql://somehost:3306/assignment_submission_db
db.username: username
db.password: password
networks:
- submission-app
front-end:
build:
context: front-end
dockerfile: Dockerfile
expose:
- "3000"
ports:
- 3000:3000
depends_on:
- back-end
networks:
- submission-app
webserver:
image: nginx:latest
ports:
- 80:80
- 443:443
restart: always
volumes:
- ./nginx/conf/:/etc/nginx/conf.d/:ro
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf:/etc/letsencrypt
depends_on:
- front-end
networks:
- submission-app
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf:/etc/letsencrypt
command:
- renew
# - certonly
# - --webroot
# - -w
# - /var/www/certbot/
# - --email=trevor@coderscampus.com
# - --agree-tos
# - --no-eff-email
# - -d
# - assignments.coderscampus.com
volumes:
cert_home:
networks:
submission-app: