You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
698 B
35 lines
698 B
version: '3.8' |
|
|
|
services: |
|
django: |
|
build: . |
|
container_name: crossapp_django |
|
command: daphne -b 0.0.0.0 -p 8000 crossapp.asgi:application |
|
volumes: |
|
- .:/app |
|
- static_volume:/app/static |
|
env_file: |
|
- .env |
|
expose: |
|
- "8000" |
|
depends_on: |
|
- nginx |
|
|
|
nginx: |
|
image: jwilder/nginx-proxy |
|
container_name: crossapp_nginx |
|
restart: always |
|
ports: |
|
- "80:80" |
|
volumes: |
|
- static_volume:/app/static:ro |
|
- /var/run/docker.sock:/tmp/docker.sock:ro |
|
environment: |
|
- NGINX_PROXY_CONTAINER=crossapp_nginx |
|
- STATIC_URL=/static/ |
|
- STATIC_PATH=/app/static |
|
depends_on: |
|
- django |
|
|
|
volumes: |
|
static_volume:
|
|
|