43 lines
No EOL
818 B
YAML
43 lines
No EOL
818 B
YAML
version: '3.3'
|
|
|
|
services:
|
|
# db:
|
|
# image: postgres
|
|
# container_name: docker-django-vue-db
|
|
# environment:
|
|
# POSTGRES_USER: user
|
|
# POSTGRES_PASSWORD: pass
|
|
# POSTGRES_DB: db
|
|
# restart: unless-stopped
|
|
# ports:
|
|
# - "5432:5432"
|
|
django:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: ./Dockerfile
|
|
command: python backend/manage.py runserver 0.0.0.0:8000
|
|
volumes:
|
|
- .:/app
|
|
ports:
|
|
- "8002:8000"
|
|
networks:
|
|
- internal
|
|
# depends_on:
|
|
# - db
|
|
vue:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: ./Dockerfile
|
|
command: nginx -g 'daemon off;'
|
|
volumes:
|
|
- .:/app
|
|
ports:
|
|
- "8001:80"
|
|
networks:
|
|
- internal
|
|
- external
|
|
depends_on:
|
|
- django
|
|
networks:
|
|
external:
|
|
internal: |