-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (32 loc) · 1.15 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
version: '3.7'
services:
nginx_prod:
container_name: nginx_prod
image: nginx:alpine
volumes:
- ./nginx-prd/nginx.conf:/etc/nginx/nginx.conf
- ./nginx-prd/ssl-config.conf:/etc/nginx/ssl-config.conf
- /ssl-certs/letsencrypt/:/etc/letsencrypt/
- ./static/:/static/
ports:
- "80:80"
- "443:443"
central_de_ajuda_rs:
container_name: central_de_ajuda_rs
restart: always
volumes:
- .:/central_de_ajuda/
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- DEBUG=False
- PYTHONUNBUFFERED=1
- APP_DATABASE_NAME=APP_DATABASE_NAME # DB Variables should be at file .env.dev or .env.prod
- APP_DATABASE_USER=APP_DATABASE_USER # DB Variables should be at file .env.dev or .env.prod
- APP_DATABASE_PASSWORD=APP_DATABASE_PASSWORD # DB Variables should be at file .env.dev or .env.prod
- APP_DATABASE_HOST=APP_DATABASE_HOST # DB Variables should be at file .env.dev or .env.prod
- APP_DATABASE_PORT=3306 # DB Variables should be at file .env.dev or .env.prod
command: python manage.py runserver 0.0.0.0:8000