💚(docker) adapt dockerfile with people updates

Adapt the dockerfile to include the new
people updates, plus adapt to impress project.
This commit is contained in:
Anthony LC
2024-04-04 14:06:03 +02:00
committed by Anthony LC
parent ca0571cb21
commit 007a9ae4f4
3 changed files with 77 additions and 38 deletions

View File

@@ -19,11 +19,11 @@ services:
app-dev:
build:
context: .
target: development
target: backend-development
args:
DOCKER_USER: ${DOCKER_USER:-1000}
user: ${DOCKER_USER:-1000}
image: impress:development
image: impress:backend-development
environment:
- PYLINTHOME=/app/.pylint.d
- DJANGO_CONFIGURATION=Development
@@ -43,7 +43,7 @@ services:
celery-dev:
user: ${DOCKER_USER:-1000}
image: impress:development
image: impress:backend-development
command: ["celery", "-A", "impress.celery_app", "worker", "-l", "DEBUG"]
environment:
- DJANGO_CONFIGURATION=Development
@@ -60,11 +60,11 @@ services:
app:
build:
context: .
target: production
target: backend-production
args:
DOCKER_USER: ${DOCKER_USER:-1000}
user: ${DOCKER_USER:-1000}
image: impress:production
image: impress:backend-production
environment:
- DJANGO_CONFIGURATION=Demo
env_file:
@@ -78,7 +78,7 @@ services:
celery:
user: ${DOCKER_USER:-1000}
image: impress:production
image: impress:backend-production
command: ["celery", "-A", "impress.celery_app", "worker", "-l", "INFO"]
environment:
- DJANGO_CONFIGURATION=Demo
@@ -91,11 +91,9 @@ services:
nginx:
image: nginx:1.25
ports:
- "8082:8082"
- "8083:8083"
volumes:
- ./docker/files/etc/nginx/conf.d:/etc/nginx/conf.d:ro
- ./data/media:/data/media:ro
depends_on:
- app
- keycloak
@@ -138,6 +136,7 @@ services:
kc_postgresql:
image: postgres:14.3
platform: linux/amd64
ports:
- "5433:5432"
env_file: