aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/cargo/docker-compose.yaml
blob: 61eccb5715ac7f1fed50ffeb499bee3623b840f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
version: "3"
services:
  nginx:
    image: nginx
    build:
      context: .
    networks:
      - cargonet
    ports:
      - "7777:8080"
    restart: unless-stopped
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
      - /home/ubuntu/cargo:/cargo
      - /etc/letsencrypt/live/cargo.terminaldweller.com/fullchain.pem:/etc/letsencrypt/live/cargo.terminaldweller.com/fullchain.pem:ro
      - /etc/letsencrypt/live/cargo.terminaldweller.com/privkey.pem:/etc/letsencrypt/live/cargo.terminaldweller.com/privkey.pem:ro
    cap_drop:
      - ALL
    cap_add:
      - CHOWN
      - SETGID
      - SETUID
networks:
  cargonet: