-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
21 lines (20 loc) · 893 Bytes
/
docker-compose.yml
File metadata and controls
21 lines (20 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Specify the version of the docker-compose file format
version: "1"
# Define the services (containers) that make up your application
services:
# The name of the service, which can be used as a hostname within the network
flaskblog:
# The image to use for this service, either from a registry or built locally
image: dogukanurker/flaskblog:latest
# The name of the container created from this service
container_name: flaskblog
# The policy to apply when the container exits (always restart, unless stopped by the user)
restart: always
# The path to the Dockerfile to build the image, if it does not exist in the registry
build: .
# The ports to expose from the container to the host (host_port:container_port)
ports:
- 5000:5000
# The volumes to mount from the host to the container (host_path:container_path)
volumes:
- .:/app