-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
55 lines (51 loc) · 1.25 KB
/
docker-compose.yaml
File metadata and controls
55 lines (51 loc) · 1.25 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
services:
ngnix:
container_name: nginx
image: nck974/flight-combination-finder-ngnix:1.0.3
restart: unless-stopped
depends_on:
- flightcombinationfinder
- flightcombinationfinderng
ports:
- 443:443
- 80:80
environment:
- NGINX_HOST=${SERVER_IP}
volumes:
- ./ssl/:/etc/nginx/ssl/:ro
flightcombinationfinder:
container_name: flightcombinationfinder
image: nck974/flight-combination-finder:1.3.0
restart: unless-stopped
depends_on:
- flightsdatabase
ports:
- 8080:8080
flightcombinationfinderng:
container_name: flightcombinationfinderng
image: nck974/flight-combination-finder-ng:1.3.0
restart: unless-stopped
depends_on:
- flightsdatabase
- flightcombinationfinder
environment:
- BACKEND_URL=https://${SERVER_IP}/backend
- PRODUCTION=true
ports:
- 8081:80
flightsdatabase:
container_name: flightsdatabase
image: postgres:16.2-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=flights
- POSTGRES_PASSWORD=flights
- POSTGRES_DB=flights
ports:
- 5439:5432
volumes:
- db:/var/lib/postgresql/data
volumes:
db:
driver: local
name: flightsdatabase