-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (42 loc) · 1 KB
/
docker-compose.yml
File metadata and controls
48 lines (42 loc) · 1 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
version: '3.4'
services:
pw_app:
image: pw_app
build:
context: .
dockerfile: ./Dockerfile
ports:
- 8000:8000
env_file:
- .env
environment:
- DB_HOSTNAME=postgres
- DB_USER=postgres
- DB_PORT=5432
- DB_DATABASE=PW
- REDIS_KEY_PREFIX=sloboda
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_DB=0
- REDIS_DECODE_RESPONSES=True
- REGIOJET_BASE_URL=https://brn-ybus-pubapi.sa.cz/restapi/routes/search/simple
- REGIOJET_LOCATIONS_URL=https://brn-ybus-pubapi.sa.cz/restapi/consts/locations
- REGIOJET_CURRENCY_RATES=https://api.skypicker.com/rates
depends_on:
- postgres
- redis
postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_DB=PW
volumes:
- postgres-db:/var/lib/postgresql/data
ports:
- 5432:5432
redis:
image: redis
restart: always
command: redis-server --requirepass password
volumes:
postgres-db: