socket:
build: ./socket
image: cliftonpalmer/go-socket
- ports:
- - 3000:3000
httpd:
image: httpd:2.4
volumes:
- ./htdocs:/usr/local/apache2/htdocs
+ web:
+ image: nginx:1.17
+ restart: on-failure
+ deploy:
+ restart_policy:
+ condition: on-failure
+ delay: 5s
+ max_attempts: 5
+ window: 10s
+ volumes:
+ - ./nginx.conf:/etc/nginx/nginx.conf
+ environment:
+ - NGINX_HOST=purplebirdman.com
+ - NGINX_PORT=80
ports:
- - 8100:80
+ - 8000:80