docker-compose.yaml 684 Bytes
Newer Older
1
version: '3.6'
marioromera's avatar
marioromera committed
2
3

services:
marioromera's avatar
marioromera committed
4
  app:
marioromera's avatar
marioromera committed
5
    image: mariachisituate/marioromera:prototype-consensus
marioromera's avatar
marioromera committed
6
7
    container_name: app
    restart: unless-stopped
8
9
    build: .
    command: node server.js
marioromera's avatar
marioromera committed
10
    ports:
11
      - 5000:5000
12
      - 8000:8000
13
14
15
      - 9001:9001
      - 6379:6379
      - 80:80
16
    env_file:
17
      - packages/server/.env
18
    # Backup
19
    volumes:
marioromera's avatar
marioromera committed
20
      - ./logs:/logs
21
    stdin_open: true
marioromera's avatar
marioromera committed
22
    environment:
23
24
      NODE_ENV: 'production'
      SERVER_PORT: 5000
25
      WORKERS: 1
26
      WS_PORT: 8000
27
28
29
30
31
32
33
34
35
36
37
38

  etherpad:
    build: 'packages/etherpad'
    ports:
      - 6379:6379
      - 9001:9001

  redis:
    image: "redis:alpine"
    command: redis-server
    ports:
      - "6379:6379"