# HAProxy exit master process immediately after docker compose up

**URL:** https://discourse.haproxy.org/t/haproxy-exit-master-process-immediately-after-docker-compose-up/5089
**Category:** Help!
**Created:** [April 17, 2020, 6:49pm UTC](https://discourse.haproxy.org/t/haproxy-exit-master-process-immediately-after-docker-compose-up/5089 "2020-04-17T18:49:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![baohand09](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@baohand09](https://discourse.haproxy.org/u/baohand09)
#### Post date: [April 17, 2020, 6:49pm UTC](https://discourse.haproxy.org/t/haproxy-exit-master-process-immediately-after-docker-compose-up/5089/1 "2020-04-17T18:49:23Z")

</div>

I am new to HAProxy so any help would be appreciated.  
I have an HAProxy container with a haproxy.cfg file below:  
global  
maxconn 256  
log [logs6.papertrailapp.com:47831](http://logs6.papertrailapp.com:47831) local0  
log-send-hostname

defaults  
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:  
haproxyload:  
image: haproxy:latest  
container\_name: haproxyload  
networks:  
- public  
links:  
- web:web  
- web1:web1  
volumes:  
- ./haproxy:/usr/local/etc/haproxy/haproxy.cfg:ro  
ports:  
- “80:80”

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