aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 1c3a75613077d2e47c11bdef8d26d47b82c6ddfc (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
version: "3.6"

services:
  postgres:
    image: postgres:12
    environment:
      POSTGRES_PASSWORD: postgres
    ports:
      - 5433:5432
    volumes:
      - dbdata:/var/lib/postgresql/data

  postgrest_api:
    build: ./postgrest
    environment:
      JWT_SECRET: ${JWT_SECRET}
    depends_on:
      - postgres
    ports:
      - 3000:3000

  login_service:
    build: ./login-service
    command: npm run dev
    environment:
      JWT_SECRET: ${JWT_SECRET}
    depends_on:
      - postgrest_api
    ports:
      - 4000:4000
    volumes:
      - ./login-service/src:/app/src

  frontend:
    build: ./frontend
    depends_on:
      - login_service
    ports:
      - 5000:5000
      - 40000:40000
    volumes:
      - ./frontend/src:/app/src

volumes:
  dbdata: