DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: a09ccd015b3ce8ea1ab4350f6252298ad8160559 deck-builder/api/docker-compose.yaml -rw-r--r-- 985 bytes
a09ccd01Jonni Liljamo feat(client): move card type specific components 1 year, 7 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
34
35
36
37
38
39
40
41
42
version: "3.8"

networks:
  internal:
    external: false

volumes:
  apidb_data:
    driver: local

services:
  laurelinapidb:
    image: postgres:15.1-alpine
    container_name: laurelinapidb
    restart: always
    networks:
      - internal
    ports:
      - "5432:5432" # DO NOT DO THIS IN PRODUCTION, ONLY FOR BROWSING THE DB IN A LOCAL ENVIRONMENT
    volumes:
      - apidb_data:/var/lib/postgresql/data
    environment:
      POSTGRES_USER: lau
      POSTGRES_PASSWORD: lau
      POSTGRES_DB: laurelinapi

  laurelinapi:
    build: .
    image: laurelinapi
    container_name: laurelinapi
    restart: always
    networks:
      - internal
    ports:
      - "8080:3000"
      - "3000:3000"
    environment:
      GIN_MODE: "release" # or "debug" for debug logs
      LAURELINAPI_JWT_SECRET: "XpNYdG7vgvgPPuezrtZqt4CJIUuxNP7c"
      GORM_DB_STRING: "host=laurelinapidb user=lau password=lau dbname=laurelinapi port=5432 sslmode=disable"
    depends_on:
      - laurelinapidb