-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (45 loc) · 1021 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
50
version: "3"
services:
frontend:
image: nginx:latest
volumes:
- ./frontend:/usr/share/nginx/html
- ./certs:/etc/nginx/certs
ports:
- "80:80" # remove in production
- "443:443"
depends_on:
- backend
restart: always
backend:
build: ./backend
volumes:
- ./backend/src:/var/www/html
- ./certs:/etc/nginx/certs
environment:
- EXECUTOR="executor.hackersoffii.com"
- DB_HOST=database
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_DATABASE=informatix
- SERVER_NAME=backend
- HTTPS_ONLY=true
ports:
- "8000:443"
depends_on:
- database
restart: always
database:
build: ./model
volumes:
- db_volume:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres # redacted username
- POSTGRES_PASSWORD=postgres # redacted password
- POSTGRES_DB=informatix
restart: always
volumes:
db_volume:
networks:
default:
name: web_project