70 lines
1.7 KiB
YAML
70 lines
1.7 KiB
YAML
version: '3'
|
|
|
|
volumes:
|
|
vbv_lernwelt_local_postgres_data: {}
|
|
vbv_lernwelt_local_postgres_data_backups: {}
|
|
|
|
services:
|
|
django:
|
|
build:
|
|
- ./env/docker_local.env
|
|
context: .
|
|
dockerfile: ./compose/local/django/Dockerfile
|
|
image: vbv_lernwelt_local_django
|
|
container_name: vbv_lernwelt_local_django
|
|
depends_on:
|
|
- postgres
|
|
volumes:
|
|
- .:/app:z
|
|
env_file:
|
|
- ./env/docker_local.env
|
|
ports:
|
|
- "8000:8000"
|
|
command: /start
|
|
|
|
postgres:
|
|
build:
|
|
context: .
|
|
dockerfile: ./compose/production/postgres/Dockerfile
|
|
image: vbv_lernwelt_production_postgres
|
|
container_name: vbv_lernwelt_local_postgres
|
|
volumes:
|
|
- vbv_lernwelt_local_postgres_data:/var/lib/postgresql/data:Z
|
|
- vbv_lernwelt_local_postgres_data_backups:/backups:z
|
|
env_file:
|
|
- ./env/docker_local.env
|
|
|
|
docs:
|
|
image: vbv_lernwelt_local_docs
|
|
container_name: vbv_lernwelt_local_docs
|
|
build:
|
|
context: .
|
|
dockerfile: ./compose/local/docs/Dockerfile
|
|
env_file:
|
|
- ./env/docker_local.env
|
|
volumes:
|
|
- ./docs:/docs:z
|
|
- ./config:/app/config:z
|
|
- ./vbv_lernwelt:/app/vbv_lernwelt:z
|
|
ports:
|
|
- "7000:7000"
|
|
command: /start-docs
|
|
|
|
node:
|
|
build:
|
|
context: .
|
|
dockerfile: ./compose/local/node/Dockerfile
|
|
image: vbv_lernwelt_local_node
|
|
container_name: vbv_lernwelt_local_node
|
|
depends_on:
|
|
- django
|
|
volumes:
|
|
- .:/app:z
|
|
# http://jdlm.info/articles/2016/03/06/lessons-building-node-app-docker.html
|
|
- /app/node_modules
|
|
command: npm run dev
|
|
ports:
|
|
- "3000:3000"
|
|
# Expose browsersync UI: https://www.browsersync.io/docs/options/#option-ui
|
|
- "3001:3001"
|