Merms core files
This commit is contained in:
+8
-33
@@ -1,37 +1,12 @@
|
||||
version: '2.2'
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
web:
|
||||
build:
|
||||
context: ./services/web
|
||||
dockerfile: Dockerfile.prod
|
||||
command: gunicorn --bind 0.0.0.0:5000 manage:app
|
||||
mermsemr-core:
|
||||
build: ./services/web
|
||||
command: python manage.py run -h 0.0.0.0
|
||||
volumes:
|
||||
- static_volume:/home/app/web/project/static
|
||||
- media_volume:/home/app/web/project/media
|
||||
expose:
|
||||
- 5000
|
||||
env_file:
|
||||
- ./.env.prod
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
image: postgres:13
|
||||
volumes:
|
||||
- postgres_data_prod:/var/lib/postgresql/data/
|
||||
env_file:
|
||||
- ./.env.prod.db
|
||||
nginx:
|
||||
build: ./services/nginx
|
||||
volumes:
|
||||
- static_volume:/home/app/web/project/static
|
||||
- media_volume:/home/app/web/project/media
|
||||
- ./services/web/:/usr/src/app/
|
||||
ports:
|
||||
- 1337:80
|
||||
depends_on:
|
||||
- web
|
||||
|
||||
volumes:
|
||||
postgres_data_prod:
|
||||
static_volume:
|
||||
media_volume:
|
||||
- "${APP_PORT:-14700}:5000"
|
||||
env_file:
|
||||
- ./.env.production
|
||||
Reference in New Issue
Block a user