github.com/dhax/go-base@v0.0.0-20231004214136-8be7e5c1972b/docker-compose.yml (about)

     1  version: "3.8"
     2  
     3  volumes:
     4    postgres:
     5  
     6  services:
     7    server:
     8      build:
     9        context: .
    10      depends_on:
    11        - postgres
    12      ports:
    13        - 3000:3000
    14      environment:
    15        LOG_LEVEL: debug
    16        LOG_TEXTLOGGING: "true"
    17        #PORT: 3000
    18        DB_ADDR: postgres:5432
    19        #DB_USER: postgres
    20        #DB_PASSWORD: postgres
    21        #DB_DATABASE: postgres
    22        #AUTH_JWT_EXPIRY: 1h
    23        #AUTH_JWT_REFRESH_EXPIRY: 72h
    24        #AUTH_JWT_SECRET: my secret
    25        #SENDGRID_API_KEY: your-sendgrid-api-key
    26        #EMAIL_FROM_ADDRESS: go-base
    27        #EMAIL_FROM_NAME: Go Base
    28        #EMAIL_SMTP_HOST:
    29        #EMAIL_SMTP_PORT: 465
    30        #EMAIL_SMTP_USER:
    31        #EMAIL_SMTP_PASSWORD:
    32        ENABLE_CORS: "true"
    33  
    34    postgres:
    35      image: postgres:16
    36      restart: unless-stopped
    37      ports:
    38        - 5432:5432
    39      volumes:
    40        - postgres:/var/lib/postgresql/data
    41      environment:
    42        POSTGRES_PASSWORD: postgres