-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (42 loc) · 1012 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.3"
services:
db:
image: postgres:10.10-alpine
environment:
POSTGRES_USER: jdisctf
POSTGRES_PASSWORD: jdisctf
POSTGRES_DB: jdisctf_db
volumes:
- ./postgres-data:/var/lib/postgresql/data
restart: on-failure
frontend-user:
build: ./frontend/user
image: frontend-user
frontend-admin:
build: ./frontend/admin
image: frontend-admin
backend:
build: ./backend
restart: always
env_file:
- ./backend/.env.production
restart: on-failure
depends_on:
- db
nginx:
build: ./nginx
cap_add:
- NET_ADMIN
# Set this if you want to use HTTPS with lets encrypt. If so, simply put the domain name at which Flaggr will be accessible (example mydomain.org)
#environment:
# - DOMAIN=res260.xyz
depends_on:
- backend
- frontend-user
- frontend-admin
volumes:
- ./letsencrypt:/etc/letsencrypt
ports:
- "80:80"
- "443:443"
restart: on-failure