Why is my redis docker listening on port 6379 and not port 6380?

I have set my docker compose to use a redis conf file which specifies the port as 6380 but it keeps listening to 6379. What am i doing wrong?

Note: the redis.conf is in the same directory I’m running docker-compose up -d from

redis.conf

port 6380

docker-compose.yml

redis1:
  image: redis:3.2-alpine
  ports:
    - 6380:6380
  volumes:
    - ./redis.conf:/usr/local/etc/redis/redis.conf
  command: redis-server /usr/local/etc/redis/redis.conf
  networks:
    foonet:
      ipv4_address: 172.22.1.10

Source: StackOverflow