-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (29 loc) · 913 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (29 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Specify the Docker Compose file version
version: '3.8'
# Define the services that make up the application
services:
# Service for the Discord bot
discord-bot:
# Configuration for building the Docker image
build:
# Specify the build context as the current directory
context:
.
# Path to the Dockerfile
dockerfile: Dockerfile
# Mount the current directory to /usr/src in the container
volumes:
- .:/usr/src
# Map ports from the host to the container
ports:
- '3001:3001' # Application port
- '9230:9230' # Debugging port
# Name of the Docker image
image: sleep-tight-discord-bot-image
restart: unless-stopped
env_file:
- docker.env
container_name: sleep-tight-discord-bot-container
# Command to run when the container starts
command: ['npm', 'run', 'start']
# command: ['npm', 'run', 'debug']