You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ctk/docker-compose.yml

62 lines
1.4 KiB
YAML

version: "3.4"
volumes:
postgres-data:
driver: local
name: ctk_postgres_data
django-static:
driver: local
name: ctk_django_static
services:
postgres:
container_name: ctk-postgres
image: postgres:11
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
backend:
container_name: ctk-server
restart: always
build:
context: ./
dockerfile: ./services/backend/Dockerfile
image: corpulent/ctk-api:1.0.0
working_dir: /home
depends_on:
- postgres
links:
- postgres
volumes:
- ./services/backend/src:/home/server/
- django-static:/static/
ports:
- "9001:9001"
environment:
- DB_REMOTE=False
- APP_URL=
frontend:
container_name: ctk-frontend
restart: always
build:
context: ./
dockerfile: ./services/frontend/Dockerfile
image: corpulent/ctk-frontend:1.0.0
depends_on:
- backend
links:
- backend
volumes:
- ./services/frontend/configs/nginx/uwsgi_params:/home/config/uwsgi/uwsgi_params
- ./services/frontend/configs/nginx/localhost.conf:/etc/nginx/conf.d/default.conf
- ./services/frontend/configs/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./services/frontend/build:/usr/share/nginx/html/
- django-static:/home/server/static/
ports:
- "80:80"