]> Untitled Git - go.git/blobdiff - docker-compose.yml
Added basic controls, refactored database sync (#2)
[go.git] / docker-compose.yml
index 2db236995b5faa7efacfd1c7416c1157f393e684..c80c306239380e7f05fd3d7b4d475d97c2e44116 100644 (file)
@@ -10,11 +10,23 @@ services:
     socket:
         build: ./socket
         image: cliftonpalmer/go-socket
     socket:
         build: ./socket
         image: cliftonpalmer/go-socket
-        ports:
-        - 3000:3000
     httpd:
         image: httpd:2.4
         volumes:
         - ./htdocs:/usr/local/apache2/htdocs
     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:
         ports:
-        - 8100:80
+        - 8000:80