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.
|
- version: '2'
- services:
- db:
- restart: always
- image: postgres:9.5
- volumes:
- - data:/var/lib/postgresql/data
- backend:
- restart: always
- build: ./backend
- volumes:
- - ./backend:/backend
- ports:
- - "8000:8000"
- depends_on:
- - db
- command: python manage.py runserver 0.0.0.0:8000
- frontend:
- restart: always
- build: ./frontend
- command: npm run dev
- volumes:
- - ./frontend:/frontend
- - node_modules:/frontend/node_modules
- ports:
- - "8080:8080"
- nginx:
- restart: always
- build: ./nginx
- ports:
- - "80:80"
- - "443:443"
- volumes_from:
- - backend
- links:
- - backend
- - frontend
- volumes:
- data:
- node_modules:
|