Skip to content

Commit

Permalink
added custom postgres image, removed gosu
Browse files Browse the repository at this point in the history
  • Loading branch information
popenc committed Dec 3, 2024
1 parent e609c97 commit 4cc22bb
Show file tree
Hide file tree
Showing 3 changed files with 383 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
version: '3.1'

volumes:
collected_static:

services:

node-builder:
build: ./vb_angular
image: vb-angular
# image: node:lts-alpine
volumes:
- ./vb_angular:/app
# node-builder:
# build: ./vb_angular
# image: vb-angular
# # image: node:lts-alpine
# volumes:
# - ./vb_angular:/app

vb-nginx:
restart: unless-stopped
build: ./vb_nginx
image: ghcr.io/quanted/vb_nginx:dev-aws
container_name: vb-nginx
ports:
# - "81:80"
- "80:80"
- "81:80"
links:
- vb-django:uwsgi_django
volumes:
Expand All @@ -30,7 +28,6 @@ services:
build: ./vb_django
image: ghcr.io/quanted/vb_django:dev
container_name: vb-django
command: ["sh", "/opt/app/start-server.sh"]
expose:
- "8080"
volumes:
Expand All @@ -39,6 +36,7 @@ services:
environment:
IN_DOCKER: "True"
DJANGO_SETTINGS_MODULE: "vb_django.settings"
DASK_SCHEDULER: vb-dask-scheduler:8786

vb-dask-scheduler:
restart: unless-stopped
Expand All @@ -65,11 +63,13 @@ services:

vb-postgres:
restart: unless-stopped
image: postgres
build: ./vb_postgres
image: vb-postgres
expose:
- 5432
environment:
POSTGRES_DB: "vb_postgres"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"

# volumes:
# - ./vb_postgres:/tmp
13 changes: 13 additions & 0 deletions vb_postgres/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# FROM postgres:16
FROM postgres:17.0-alpine3.20

RUN apk update && \
apk upgrade --available

RUN apk add --upgrade apk-tools bash su-exec

COPY docker-entrypoint.sh /usr/local/bin/

RUN chmod +x /usr/local/bin/docker-entrypoint.sh

RUN rm /usr/local/bin/gosu
Loading

0 comments on commit 4cc22bb

Please sign in to comment.