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.
spot2gether/docker-compose.yml.example

40 lines
715 B
Plaintext

version: '3'
services:
redis:
image: redis:alpine
expose:
- 6379
restart: always
environment:
- REDIS_REPLICATION_MODE=master
backend:
image: node:alpine
restart: always
expose:
- 3000
volumes:
- ./backend/:/home/node/app/backend/
- ./helpers/:/home/node/app/helpers/
working_dir: /home/node/app/backend
environment:
- NODE_ENV=production
command: sh -c 'npm i && nodejs index.mjs'
links:
- redis
depends_on:
- redis
frontend:
build:
context: ./frontend
dockerfile: ".Dockerfile"
restart: always
ports:
- "8080:8080"
links:
- backend
depends_on:
- backend