docker-compose.yml
849 bytes
| 1 | services: |
|---|---|
| 2 | db: |
| 3 | image: postgres:16 |
| 4 | container_name: phase3-db |
| 5 | restart: unless-stopped |
| 6 | environment: |
| 7 | POSTGRES_DB: splitapp |
| 8 | POSTGRES_USER: postgres |
| 9 | POSTGRES_PASSWORD: postgres |
| 10 | volumes: |
| 11 | - phase3-pgdata:/var/lib/postgresql/data |
| 12 | |
| 13 | phase3: |
| 14 | build: |
| 15 | context: . |
| 16 | dockerfile: Dockerfile |
| 17 | container_name: phase3 |
| 18 | restart: unless-stopped |
| 19 | ports: |
| 20 | - "90:8080" |
| 21 | environment: |
| 22 | - ConnectionStrings__DefaultConnection=Host=db;Port=5432;Database=splitapp;Username=postgres;Password=postgres |
| 23 | - JWT__Key=phase3_modular_monolith_signing_key_at_least_32_chars_long_for_hs256 |
| 24 | - JWT__Issuer=itcollege.taltech.ee |
| 25 | - JWT__Audience=itcollege.taltech.ee |
| 26 | - JWT__ExpiresInSeconds=1800 |
| 27 | - ASPNETCORE_URLS=http://+:8080 |
| 28 | depends_on: |
| 29 | - db |
| 30 | |
| 31 | volumes: |
| 32 | phase3-pgdata: |
| 33 | |