docker-compose-collection/nginx_reverse+code-server/docker-compose.yaml

24 lines
463 B
YAML
Raw Normal View History

version: '3'
services:
reverse:
container_name: reverse
hostname: reverse
image: nginx
ports:
- 443:443
volumes:
2023-02-05 16:44:01 +08:00
- ./nginx/:/etc/nginx/
- ./certs/:/etc/ssl/private/
code-server:
user: 1001:1001
expose:
- '8080'
volumes:
2023-02-05 16:44:01 +08:00
- './project:/home/coder/project/'
- './user:/home/coder/.local/share/code-server/'
environment:
2023-02-05 16:44:01 +08:00
- PASSWORD=xxxx*xxxx
image: 'codercom/code-server:latest'