alterações gerais
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
volumes:
|
||||
diarios_oficiais_alems_local_postgres_data: {}
|
||||
diarios_oficiais_alems_local_postgres_data_backups: {}
|
||||
esdata:
|
||||
esdata:
|
||||
|
||||
services:
|
||||
django:
|
||||
@ -12,6 +12,7 @@ services:
|
||||
container_name: diarios_oficiais_alems_local_django
|
||||
depends_on:
|
||||
- postgres
|
||||
- elasticsearch
|
||||
volumes:
|
||||
- .:/app:z
|
||||
env_file:
|
||||
@ -20,6 +21,21 @@ services:
|
||||
ports:
|
||||
- '8005:8005'
|
||||
command: /start
|
||||
restart: unless-stopped
|
||||
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
container_name: diarios_oficiais_alems_local_nginx
|
||||
volumes:
|
||||
- ./compose/local/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- ./staticfiles:/app/staticfiles:ro
|
||||
- ./mediafiles:/app/mediafiles:ro
|
||||
ports:
|
||||
- "80:80"
|
||||
depends_on:
|
||||
- django
|
||||
restart: unless-stopped
|
||||
|
||||
|
||||
postgres:
|
||||
build:
|
||||
@ -37,15 +53,8 @@ services:
|
||||
image: docker.elastic.co/elasticsearch/elasticsearch:8.17.3
|
||||
environment:
|
||||
- discovery.type=single-node
|
||||
- xpack.security.enabled=true
|
||||
- xpack.security.enabled=false
|
||||
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
|
||||
volumes:
|
||||
- esdata:/usr/share/elasticsearch/data
|
||||
|
||||
frontend:
|
||||
image: nginx:latest
|
||||
container_name: frontend_diarios
|
||||
volumes:
|
||||
- ./frontend:/usr/share/nginx/html:ro
|
||||
ports:
|
||||
- "8006:80"
|
||||
|
||||
Reference in New Issue
Block a user