diff --git a/.env.example b/.env.example index 1da5583..d7b1933 100644 --- a/.env.example +++ b/.env.example @@ -1,20 +1,19 @@ -COMPOSE_FILE= -SERVER_NAME= -DB_NAME= -PROCRASTINATE_NAME= +SERVER_NAME=wygiwyh_server +DB_NAME=wygiwyh_pg +PROCRASTINATE_NAME=wygiwyh_procrastinate -DEBUG=true -URL = https://mais.alcanceconsulting.com.br +DEBUG=false +URL = https://... HTTPS_ENABLED=true -SECRET_KEY=foo +SECRET_KEY= DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1] OUTBOUND_PORT=9005 SQL_ENGINE=django.db.backends.postgresql -SQL_DATABASE=alcance_mais -SQL_USER= -SQL_PASSWORD= -SQL_HOST=alcance_mais_pg +SQL_DATABASE=wygiwyh +SQL_USER=wygiwyh +SQL_PASSWORD= +SQL_HOST=${DB_NAME} SQL_PORT=5432 # Gunicorn diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 4a45d66..c06c0fd 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -1,5 +1,3 @@ -version: '3.8' - volumes: wygiwyh_dev_postgres_data: {} temp: @@ -15,7 +13,6 @@ services: volumes: - ./app/:/usr/src/app/:z - ./frontend/:/usr/src/frontend:z - - temp:/temp ports: - "${OUTBOUND_PORT}:8000" env_file: diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index a5e67cd..1520b53 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -1,5 +1,3 @@ -version: '3.8' - services: web: &django build: @@ -8,8 +6,6 @@ services: image: ${SERVER_NAME} container_name: ${SERVER_NAME} command: /start - volumes: - - temp:/temp ports: - "${OUTBOUND_PORT}:8000" env_file: @@ -38,11 +34,3 @@ services: ports: [ ] command: /start-procrastinate restart: unless-stopped - -networks: - default: - name: compose_default - external: true - -volumes: - temp: