-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (39 loc) · 940 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
version: '3.9'
services:
web:
build: .
command: "uvicorn tripproject.asgi:application --host 0.0.0.0 --port 8043"
volumes:
- static_volume:/usr/src/app/staticfiles
- media_volume:/usr/src/app/media
expose:
- 8043
env_file:
- .env
depends_on:
- db
container_name: trippanion_web
nginx:
image: nginx:latest
container_name: trippanion_nginx
ports:
- "8043:8043"
volumes:
- static_volume:/usr/src/app/staticfiles
- media_volume:/usr/src/app/media
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- web
db:
image: postgres:13
container_name: trippanion_db
volumes:
- tripapp_postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: tripappdb
POSTGRES_USER: tripappuser
POSTGRES_PASSWORD: tripapppassword
volumes:
static_volume:
media_volume:
tripapp_postgres_data: