docker-compose-collection/nginx_reverse+code-server/docker-compose.yaml
2023-02-05 16:44:01 +08:00

24 lines
463 B
YAML

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