github.com/shoshinnikita/budget-manager@v0.7.1-0.20220131195411-8c46ff1c6778/docker-compose.yml (about)

     1  version: "2.4"
     2  
     3  services:
     4    budget-manager:
     5      image: budget-manager:latest
     6      env_file:
     7        - .env
     8      # Overwrite env variables from .env
     9      environment:
    10        DB_PG_HOST: postgres
    11        DB_PG_PORT: 5432
    12        DB_PG_USER: postgres
    13        DB_PG_PASSWORD: postgres
    14        DB_PG_DATABASE: postgres
    15        DB_SQLITE_PATH: /srv/var/budget-manager.db
    16        #
    17        SERVER_USE_EMBED: "true"
    18      volumes:
    19        - ./_var/sqlite:/srv/var # store SQLite db in ./_var/sqlite
    20      ports:
    21        - "8080:8080"
    22  
    23    postgres:
    24      image: postgres:12-alpine
    25      environment:
    26        POSTGRES_USER: postgres
    27        POSTGRES_PASSWORD: postgres
    28        POSTGRES_DB: postgres
    29      volumes:
    30        - ./_var/pg_data:/var/lib/postgresql/data # store the data in ./var/pg_data
    31      command: -c "log_statement=all"