-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (31 loc) · 901 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (31 loc) · 901 Bytes
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
version: "3.8"
services:
web:
build: ./app
image: 848406646774.dkr.ecr.us-west-2.amazonaws.com/workshop2:workshop2_web
command: gunicorn nc_tutorials.wsgi:application --bind 0.0.0.0:8000
volumes:
- ./app/:/usr/src/app/
- static_volume:/usr/src/app/static
expose:
- 8000
environment:
- DB_NAME=nc_tutorials_db
- DB_USER=postgres
- DB_PASSWORD=admin123
- DB_HOST=nctutorials.cdyqtsfwkeuf.us-west-2.rds.amazonaws.com
- DB_PORT=5432
- DATABASE=postgres
- VIRTUAL_HOST=ec2-44-233-8-39.us-west-2.compute.amazonaws.com
- VIRTUAL_PORT=8000
nginx:
build: ./nginx
image: 848406646774.dkr.ecr.us-west-2.amazonaws.com/workshop2:workshop2_nginx
volumes:
- static_volume:/usr/src/app/static
ports:
- 8000:80
depends_on:
- web
volumes:
static_volume: