X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/50995366c1728536907fbeded492f681c56c1b0d..cf4d99fb1b5bf4f27da9e1654f7ff6e2597fa136:/docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml index bda15bb40..b01e97071 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -26,8 +26,6 @@ x-app-base: &app-base services: web: <<: *app-base - ports: - - "8000:8000" command: ./manage.py runserver 0.0.0.0:8000 celery: @@ -35,7 +33,9 @@ services: command: celery -A wolnelektury worker -l info db: - image: postgres:18 + build: + context: . + target: postgres env_file: - .env volumes: @@ -47,6 +47,21 @@ services: memcached: image: memcached:1.6-alpine + nginx: + build: + context: . + target: nginx + args: + UID: ${UID:-1000} + GID: ${GID:-1000} + ports: + - "127.0.0.1:8101:80" + volumes: + - ./var/media:/app/var/media:ro + - ./scripts/nginx.conf:/etc/nginx/conf.d/default.conf:ro + depends_on: + - web + volumes: - ipython: \ No newline at end of file + ipython: