-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
40 lines (39 loc) · 986 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
version: '3.4'
services:
api:
build:
context: .
dockerfile: DOCKERFILE
image: api
command: ./scripts/build-run/docker-entrypoint.sh
#expose:
# - 8000
volumes:
- .:/code/src_files/
# - ./hackoregon_sandbox/api:/code/src_files/hackoregon_sandbox/api
ports:
- "8000:8000"
environment:
- DEBUG=${DEBUG}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_NAME=${POSTGRES_NAME}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
nginx:
build:
context: ./nginx
dockerfile: DOCKERFILE
image: nginx
# logging:
# driver: awslogs
# options:
# awslogs-region: us-west-2
# awslogs-group: 2019-sandbox-backend-nginx
# awslogs-stream: access
# awslogs-create-group: 'true'
ports:
- 80:80
depends_on:
- api