generated from MLH-Fellowship/pe-portfolio-site
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
44 lines (41 loc) · 845 Bytes
/
docker-compose.prod.yml
File metadata and controls
44 lines (41 loc) · 845 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
version: "3"
services:
myportfolio:
container_name: myportfolio
build: .
restart: always
env_file:
- .env
depends_on:
mysql:
condition: service_healthy
mysql:
container_name: mysql
image: mariadb
restart: always
healthcheck:
test: ["CMD-SHELL", "bash -c 'exec 3<>/dev/tcp/localhost/3306'"]
interval: 10s
timeout: 5s
retries: 5
env_file:
- .env
volumes:
- mydatabase:/var/lib/mysql
nginx:
container_name: nginx
image: jonasal/nginx-certbot
restart: always
environment:
- CERTBOT_EMAIL=zidanni.clerigo@gmail.com
ports:
- 80:80
- 443:443
volumes:
- nginx_secrets:/etc/letsencrypt
- ./user_conf.d:/etc/nginx/conf.d
depends_on:
- myportfolio
volumes:
mydatabase:
nginx_secrets: