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