| 1 | --- |
| 2 | version: '3' |
| 3 | volumes: |
| 4 | redis: |
| 5 | services: |
| 6 | redis: |
| 7 | read_only: true |
| 8 | image: docker.io/redis:alpine |
| 9 | command: ["redis-server", "--appendonly", "yes", "--notify-keyspace-events", "Ex"] |
| 10 | volumes: |
| 11 | - redis:/data |
| 12 | web: |
| 13 | read_only: true |
| 14 | build: |
| 15 | context: . |
| 16 | image: hello-py-aioweb |
| 17 | ports: |
| 18 | - 8080:8080 |
| 19 | environment: |
| 20 | REDIS_HOST: redis |
| 21 |