-
Notifications
You must be signed in to change notification settings - Fork 25
/
docker-compose.yml
66 lines (60 loc) · 1.26 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
58
59
60
61
62
63
64
65
66
version: '3.8'
services:
taxi-redis:
container_name: taxi-redis
image: redis:7-alpine
taxi-database:
container_name: taxi-database
environment:
- POSTGRES_PASSWORD=taxi
image: postgres:15-alpine
ports:
- 5433:5432
volumes:
- taxi-database:/var/lib/postgresql/data
taxi-server:
build:
context: ./server
command: daphne --bind 0.0.0.0 --port 8000 taxi.asgi:application
container_name: taxi-server
depends_on:
- taxi-redis
- taxi-database
env_file:
- ./server/.env
ports:
- 8001:8000
volumes:
- ./server:/usr/src/app
- media:/usr/src/app/media
- static:/usr/src/app/static
taxi-client:
build:
context: ./client
command: ng serve --host 0.0.0.0
container_name: taxi-client
depends_on:
- taxi-server
environment:
- CHROME_BIN=chromium-browser
ports:
- 4201:4200
volumes:
- ./client:/usr/src/app
nginx:
build:
context: ./nginx
container_name: taxi-nginx
depends_on:
- taxi-server
- taxi-client
ports:
- 8080:80
restart: always
volumes:
- media:/usr/src/app/media
- static:/usr/src/app/static
volumes:
taxi-database:
media:
static: