~kameliya/tori

tori/docker-compose.yml -rw-r--r-- 696 bytes
b76c9c60Asherah Connor but what if you logged off 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: '3'
services:
  db:
    image: postgres
    volumes:
      - ./tmp/db:/var/lib/postgresql/data
  backend:
    image: alpine
    volumes:
      - ./backend:/tori/backend
    working_dir: /tori/backend
    command: ./torid
    environment:
      - "TORI_DB=host=db sslmode=disable user=postgres dbname=tori"
      - "TORI_SIGNING_KEY=xyzabc123"
      - "TORI_LISTEN_ADDRESS=:3000"
    env_file:
      - .env
    ports:
      - "3001:3000"
    depends_on:
      - db
  frontend:
    image: "node:13-alpine"
    user: node
    volumes:
      - ./frontend:/tori/frontend
    working_dir: /tori/frontend
    ports:
      - "3000:3000"
    command: "yarn start"
    depends_on:
      - backend