Updated docker compose file
This commit is contained in:
		
							parent
							
								
									7a0022cb59
								
							
						
					
					
						commit
						b9c4253481
					
				@ -2,20 +2,19 @@ version: "3.8"
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  shaiwatcher:
 | 
			
		||||
    build: .
 | 
			
		||||
    image: shaiwatcher:latest           # local image name (Portainer builds it)
 | 
			
		||||
    build:
 | 
			
		||||
      context: .
 | 
			
		||||
      dockerfile: dockerfile
 | 
			
		||||
    container_name: shaiwatcher
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
    environment:
 | 
			
		||||
      # set this in Portainer (don’t commit your token!)
 | 
			
		||||
      - DISCORD_TOKEN=${DISCORD_TOKEN}
 | 
			
		||||
      # optional: set timezone
 | 
			
		||||
      - TZ=UTC
 | 
			
		||||
    volumes:
 | 
			
		||||
      # Persist your JSON data here
 | 
			
		||||
      - shaiwatcher-data:/app/data
 | 
			
		||||
      # Bind your server-side settings.conf into the container
 | 
			
		||||
      - /opt/shaiwatcher/settings.conf:/app/settings.conf:ro
 | 
			
		||||
 | 
			
		||||
      - shaiwatcher_data:/app/data
 | 
			
		||||
      # use your repo’s settings.conf at runtime
 | 
			
		||||
      - ./settings.conf:/app/settings.conf:ro
 | 
			
		||||
volumes:
 | 
			
		||||
  shaiwatcher-data:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user