DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: 0162b4cee5e9e84a4ad055b48a2a5066920d6a64 deck-builder/sdbapi/docker-compose.yaml -rw-r--r-- 816 bytes
0162b4ceJonni Liljamo feat(sdbclient): disallow play if not logged in 1 year, 10 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
version: "3.8"

networks:
  internal:
    external: false

volumes:
  apidb_data:
    driver: local

services:
  sdbapidb:
    image: postgres:15.1-alpine
    container_name: sdbapidb
    restart: always
    networks:
      - internal
    volumes:
      - apidb_data:/var/lib/postgresql/data
    environment:
      POSTGRES_USER: sdbapi
      POSTGRES_PASSWORD: sdbapi
      POSTGRES_DB: sdbapi

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