-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (26 loc) · 858 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (26 loc) · 858 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 version of Docker Compose
version: '3'
# Define services
services:
# Define the web app service
webapp:
# Build the Docker image from the current directory
build: .
# Map port 5000 on the host to port 5000 on the container
ports:
- "5000:5000"
# Mount the current directory on the host to /app in the container
# This allows you to change the source code on the host and have it
# immediately visible in the container without needing to rebuild the image
volumes:
- .:/app
# Set environment variables for the container
environment:
- FLASK_ENV=development
# Cap_add and cap_drop allow you to specify kernel capabilities to add or drop.
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse
security_opt:
- apparmor:unconfined