HAProxy community

HAProxy exit master process immediately after docker compose up

I am new to HAProxy so any help would be appreciated.
I have an HAProxy container with a haproxy.cfg file below:
maxconn 256
log logs6.papertrailapp.com:47831 local0

log global
option httplog
mode http
maxconn 1000
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms

frontend http-in
log global
option httplog
bind *:80
default_backend servers

backend servers
log global
balance roundrobin
server server1 web:8000
server server2 web1:8000

Everytime I run docker-compose up, the master process exits immediately. I am not sure why it is exiting immediately. Docker logs haproxyload outputs below:
[NOTICE] 107/183351 (1) : New worker #1 (6) forked

[WARNING] 107/183544 (1) : Exiting Master process…

[WARNING] 107/183544 (6) : Stopping frontend http-in in 0 ms.

[WARNING] 107/183544 (6) : Stopping backend servers in 0 ms.

[WARNING] 107/183544 (6) : Stopping frontend GLOBAL in 0 ms.

[WARNING] 107/183544 (6) : Proxy http-in stopped (FE: 0 conns, BE: 0 conns).

[WARNING] 107/183544 (6) : Proxy servers stopped (FE: 0 conns, BE: 0 conns).

[WARNING] 107/183544 (6) : Proxy GLOBAL stopped (FE: 0 conns, BE: 0 conns).

This is the container in my docker-compose.yml:
image: haproxy:latest
container_name: haproxyload
- public
- web:web
- web1:web1
- ./haproxy:/usr/local/etc/haproxy/haproxy.cfg:ro
- “80:80”

The cfg file is valid when I exec into the container and run the command with -c