forked from supermodularxyz/simplegrants
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
54 lines (53 loc) · 1.6 KB
/
docker-compose.yml
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
services:
traefik:
image: traefik:v2.9
container_name: "traefik"
restart: always
command:
- "--accesslog=true"
- "--accesslog.filepath=/traefik/logs/access.log"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- simplegrants
simplegrants-backend:
extends:
file: ./backend/docker-compose.yml
service: simplegrants-backend
env_file:
- ./backend/.env
depends_on:
- simplegrants-database
simplegrants-database:
extends:
file: ./backend/docker-compose.yml
service: simplegrants-database
env_file:
- ./backend/.env
simplegrants-frontend:
extends:
file: ./frontend/docker-compose.yml
service: simplegrants-frontend
depends_on:
- simplegrants-backend
env_file:
- ./frontend/.env.production
volumes:
simplegrants-database:
networks:
simplegrants: