-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathdocker-compose.yml
57 lines (51 loc) · 1.14 KB
/
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
51
52
53
54
55
56
57
version: '3.8'
services:
taxi-server:
build:
context: ./server
command: python manage.py runserver 0.0.0.0:8000
container_name: taxi-server
depends_on:
- taxi-redis
- taxi-database
environment:
- PGDATABASE=taxi
- PGUSER=taxi
- PGPASSWORD=taxi
- PGHOST=taxi-database
- REDIS_URL=redis://taxi-redis:6379/0
ports:
- 8003:8000
volumes:
- ./server:/usr/src/app
taxi-redis:
container_name: taxi-redis
image: redis:7-alpine
taxi-database:
container_name: taxi-database
image: postgres:15-alpine
environment:
- POSTGRES_USER=taxi
- POSTGRES_PASSWORD=taxi
expose:
- 5432
volumes:
- taxi-database:/var/lib/postgresql/data
taxi-client:
build:
context: ./client
command: yarn start
container_name: taxi-client
depends_on:
- taxi-server
environment:
- CHOKIDAR_USEPOLLING=true
- REACT_APP_BASE_URL=http://localhost:8003
- REACT_APP_GOOGLE_MAPS_KEY=<YOUR_API_KEY>
ports:
- 3001:3000
stdin_open: true
volumes:
- ./client:/usr/src/app
volumes:
taxi-database: