Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
version: "3"
services:
postgres:
container_name: postgres-emotions-docker
image: postgres
restart: always
ports:
- "5432:5432"
networks:
- default
volumes:
- ./postgres:/data/postgres
environment:
POSTGRES_DB: emotions
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123
PGDATA: /data/postgres
redis:
image: redis
ports:
- 6379:6379
volumes:
- ./redis:/data
backend:
container_name: node-emotions-docker
build:
context: .
dockerfile: Dockerfile
networks:
- default
environment:
- NODE_ENV=production
tty: true
stdin_open: true
depends_on:
- redis
- postgres
ports:
- "6000:6000"
networks:
default:
name: backend-network-emotions-docker