add local dev docker
This commit is contained in:
+13
-1
@@ -8,4 +8,16 @@ DB_USER=django
|
||||
DB_PASSWORD=postgres
|
||||
DB_PORT=5432
|
||||
|
||||
MEMCACHE_HOST=cache
|
||||
MEMCACHE_HOST=cache
|
||||
|
||||
# DEV-specific vars used by rad/settings_local.py
|
||||
DEV_USE_POSTGRES=1
|
||||
DEV_DB_NAME=${DB_NAME}
|
||||
DEV_DB_USER=${DB_USER}
|
||||
DEV_DB_PASSWORD=${DB_PASSWORD}
|
||||
DEV_DB_HOST=${DB_HOST}
|
||||
DEV_DB_PORT=${DB_PORT}
|
||||
|
||||
# pgAdmin creds
|
||||
PGADMIN_DEFAULT_EMAIL=admin@example.com
|
||||
PGADMIN_DEFAULT_PASSWORD=admin
|
||||
@@ -7,11 +7,13 @@ services:
|
||||
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
|
||||
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||||
web:
|
||||
build: ./rad
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: rad/Dockerfile
|
||||
command: python manage.py runserver 0.0.0.0:8000
|
||||
#command: pip install -r requirements.txt
|
||||
volumes:
|
||||
- ./rad/:/usr/src/rad/
|
||||
- ../rad/:/usr/src/rad/
|
||||
- ../rts/:/usr/src/rad/rts
|
||||
- ../Viewers/platform/app/dist/:/usr/src/rad/viewer
|
||||
- ./backups:/usr/src/backups
|
||||
@@ -30,10 +32,20 @@ services:
|
||||
- POSTGRES_USER=django
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_DB=rad
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4:7.2
|
||||
environment:
|
||||
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL:-admin@local}
|
||||
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD:-admin}
|
||||
ports:
|
||||
- 8080:80
|
||||
volumes:
|
||||
- pgadmin_data:/var/lib/pgadmin
|
||||
cache:
|
||||
image: memcached
|
||||
ports:
|
||||
- 11211:11211
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
postgres_data:
|
||||
pgadmin_data:
|
||||
Reference in New Issue
Block a user