This repository was archived by the owner on Feb 28, 2025. It is now read-only.
forked from yearn-integrations/yearn-api
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (60 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
60 lines (60 loc) · 1.37 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
version: "3.6"
services:
database:
image: mongo
container_name: "database"
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
restart: always
ports:
- "27017:27017"
volumes:
- "mongodata:/data/db"
networks:
- backend
api:
container_name: "api"
image: daoventures/api-app:latest
restart: always
env_file:
- .env
ports:
- "8080:8080"
networks:
- backend
depends_on:
- database
webserver:
image: daoventures/frontend-app:latest
container_name: webserver
ports:
- "80:80"
- "443:443"
env_file:
- .env
restart: always
volumes:
- ./:/var/www
- ./nginx:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
depends_on:
- api
networks:
- backend
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
image: certbot/certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
networks:
- backend
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
mongodata:
driver: local
networks:
backend:
driver: bridge