onasty/docker-compose.yml (view raw)
| 1 | services: |
| 2 | core: |
| 3 | image: onasty:core |
| 4 | container_name: onasty-core |
| 5 | build: |
| 6 | context: . |
| 7 | dockerfile: Dockerfile |
| 8 | env_file: .env |
| 9 | ports: |
| 10 | - 8000:8000 |
| 11 | - 8001:8001 |
| 12 | |
| 13 | mailer: |
| 14 | image: onasty:mailer |
| 15 | container_name: onasty-mailer |
| 16 | build: |
| 17 | context: . |
| 18 | dockerfile: ./mailer/Dockerfile |
| 19 | env_file: ./mailer/.env |
| 20 | |
| 21 | postgres: |
| 22 | image: postgres:16-alpine |
| 23 | container_name: onasty-postgres |
| 24 | environment: |
| 25 | POSTGRES_USER: onasty |
| 26 | POSTGRES_PASSWORD: qwerty |
| 27 | POSTGRES_DB: onasty |
| 28 | volumes: |
| 29 | - .docker/postgres:/var/lib/postgresql/data |
| 30 | ports: |
| 31 | - 5432:5432 |
| 32 | |
| 33 | nats: |
| 34 | image: nats:2.10 |
| 35 | ports: |
| 36 | - 4222:4222 |
| 37 | |
| 38 | redis: |
| 39 | image: redis:7.4-alpine |
| 40 | container_name: onasty-redis |
| 41 | ports: |
| 42 | - 6379:6379 |
| 43 | |
| 44 | prometheus: |
| 45 | image: prom/prometheus |
| 46 | container_name: onasty-prometheus |
| 47 | user: root |
| 48 | volumes: |
| 49 | - ./.docker/prometheus:/prometheus |
| 50 | - ./infra/prometheus:/etc/prometheus |
| 51 | ports: |
| 52 | - 9090:9090 |
| 53 | |
| 54 | grafana: |
| 55 | image: grafana/grafana:11.1.6 |
| 56 | container_name: onasty-grafana |
| 57 | user: root |
| 58 | environment: |
| 59 | - GF_SECURITY_ADMIN_USER=admin |
| 60 | - GF_SECURITY_ADMIN_PASSWORD=admin |
| 61 | volumes: |
| 62 | - ./.docker/grafana:/var/lib/grafana |
| 63 | - ./infra/grafana/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml |
| 64 | ports: |
| 65 | - 3069:3000 |
| 66 | |
| 67 | loki: |
| 68 | image: grafana/loki:3.2.0 |
| 69 | command: ["--pattern-ingester.enabled=true", "-config.file=/etc/loki/config.yaml"] |
| 70 | ports: |
| 71 | - 3100:3100 |
| 72 | volumes: |
| 73 | - ./infra/loki/config.yaml:/etc/loki/config.yaml |
| 74 | |
| 75 | promtail: |
| 76 | image: grafana/promtail:3.0.0 |
| 77 | command: -config.file=/etc/promtail/config.yaml |
| 78 | volumes: |
| 79 | - /var/run/docker.sock:/var/run/docker.sock |
| 80 | - ./infra/promtail/config.yaml:/etc/promtail/config.yaml |