-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (44 loc) · 966 Bytes
/
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
version: “3”
services:
nginx:
build:
context: ./nginx
dockerfile: Dockerfile.prod
ports:
- "80:80"
- "443:443"
depends_on:
- backend
- frontend
volumes:
- certbot-www:/var/www/certbot/:ro
- certbot-conf:/etc/nginx/ssl/:ro
networks:
- lesser-net
backend:
build:
context: ./backend
environment:
- DATABASE_HOST=${DATABASE_HOST}
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- DATABASE_NAME=${DATABASE_NAME}
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
- GITHUB_CLIENT_SECRETS=${GITHUB_CLIENT_SECRETS}
- JWT_SECRET=${JWT_SECRET}
networks:
- lesser-net
frontend:
build:
context: ./frontend
networks:
- lesser-net
networks:
lesser-net:
external: true
volumes:
certbot-www:
external: true
certbot-conf:
external: true