Skip to content

Commit

Permalink
cleanup docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Maiykol committed Feb 7, 2024
1 parent 1022ef9 commit d2fed7a
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 3 deletions.
63 changes: 63 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
version: '3.3'

services:
web:
container_name: caddie_web
image: ghcr.io/biomedbigdata/caddie-frontend:development
restart: always
ports:
- 8111:80
networks:
- caddie
labels:
- "com.centurylinklabs.watchtower.enable=true"
app:
image: ghcr.io/biomedbigdata/caddie-backend:development
container_name: caddie_app
env_file:
- 'docker-django.env'
restart: always
ports:
- 8112:8000
networks:
- db_net
- redis_net
- caddie
depends_on:
- db
- redis
labels:
- "com.centurylinklabs.watchtower.enable=true"
db:
image: postgres
restart: always
hostname: db
networks:
- db_net
volumes:
- caddie_postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=caddie
- POSTGRES_USER=caddie
- POSTGRES_PASSWORD=placeholder
command:
- "postgres"
- "-c"
- "max_connections=10000"
- "-c"
- "shared_buffers=2GB"
redis:
image: redis
restart: always
command: ["redis-server"]
hostname: redis
networks:
- redis_net

networks:
db_net:
redis_net:
caddie:

volumes:
caddie_postgres_data:
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
environment:
- POSTGRES_DB=caddie
- POSTGRES_USER=caddie
- POSTGRES_PASSWORD=8tGCwBMPa5htrEvkBMbq5s8WVtrm8x
- POSTGRES_PASSWORD=placeholder
command:
- "postgres"
- "-c"
Expand Down
4 changes: 2 additions & 2 deletions docker-django.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ REDIS_PORT=6379

DJANGO_SUPERUSER_EMAIL=''
DJANGO_SUPERUSER_USERNAME=caddie
DJANGO_SUPERUSER_PASS=8tGCwBMPa5htrEvkBMbq5s8WVtrm8x
DJANGO_SUPERUSER_PASS=placeholder

POSTGRES_DB=caddie
POSTGRES_USER=caddie
POSTGRES_PASSWORD=8tGCwBMPa5htrEvkBMbq5s8WVtrm8x
POSTGRES_PASSWORD=placeholder

0 comments on commit d2fed7a

Please sign in to comment.