From 13ed0e634674c4dabbb119b2ea1fb147d915a9b8 Mon Sep 17 00:00:00 2001 From: gbanyan Date: Wed, 22 Apr 2020 04:35:23 +0800 Subject: [PATCH] Add docker-compose.yaml for nginx reverse and code-server --- nginx_reverse+code-server/docker-compose.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 nginx_reverse+code-server/docker-compose.yaml diff --git a/nginx_reverse+code-server/docker-compose.yaml b/nginx_reverse+code-server/docker-compose.yaml new file mode 100644 index 0000000..915e533 --- /dev/null +++ b/nginx_reverse+code-server/docker-compose.yaml @@ -0,0 +1,22 @@ +version: '3' + +services: + reverse: + container_name: reverse + hostname: reverse + image: nginx + ports: + - 443:443 + volumes: + - /home/gbanyan/docker/nginx/:/etc/nginx/ + - /home/gbanyan/docker/certs/:/etc/ssl/private/ + + code-server: + user: 1001:1001 + expose: + - '8080' + volumes: + - '/home/gbanyan/docker/code-server/:/home/coder/project/' + environment: + - PASSWORD=8115@code + image: 'codercom/code-server:latest' \ No newline at end of file