plex:
  container_name: plex
  image: timhaak/plex
  restart: unless-stopped
  ports:
    - 32400:32400
  volumes:
    - /etc/localtime:/etc/localtime:ro
    - ./data/config:/config
    - ./data/data:/data
  environment:
    - PLEX_USERNAME=username
    - PLEX_PASSWORD=password
    - PLEX_TOKEN=token

version: '2'
services:
    plex:
        container_name: plex
        image: timhaak/plex
        restart: unless-stopped
        ports:
          - 32400:32400
        volumes:
          - /etc/localtime:/etc/localtime:ro
          - ./data/config:/config
          - ./data/data:/data
        environment:
          - PLEX_USERNAME=username
          - PLEX_PASSWORD=password
          - PLEX_TOKEN=token

Upgrade to current Docker Compose format
Upgrade to current Docker Compose format
