-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
20 lines (18 loc) · 1.23 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version: '3.8' # Specifies the Docker Compose file format version. '3.8' is compatible with newer Docker Compose features.
services:
uglyfeed: # Defines a service named 'uglyfeed'.
image: fabriziosalmi/uglyfeed:latest # The Docker image to use for this service, tagged with 'latest'.
ports:
- "8001:8001" # Maps port 8001 on the host to port 8001 in the container.
- "8501:8501" # Maps port 8501 on the host to port 8501 in the container.
volumes:
- /path/to/local/feeds.txt:/app/input/feeds.txt # Mounts the local file 'feeds.txt' to '/app/input/feeds.txt' in the container.
- /path/to/local/config.yaml:/app/config.yaml # Mounts the local file 'config.yaml' to '/app/config.yaml' in the container.
container_name: uglyfeed # Sets the container's name to 'uglyfeed' for easier identification and management.
networks:
- uglyfeed_network # Connects the service to the specified network 'uglyfeed_network'.
# Defines networks to be used by the services.
networks:
uglyfeed_network: # This network will be used by the 'uglyfeed' service.
external:
name: uglyfeed # Specifies that the network named 'uglyfeed' is external, meaning it should already exist and not be managed by this Compose file.