generated from ilkersigirci/python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.22 KB
/
docker-compose.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: movie-guess
networks:
movie-guess-network:
name: movie-guess-network
driver: bridge
ipam:
config:
- subnet: 192.168.10.0/24
services:
movie-guess-dev:
image: movie-guess-dev:latest
container_name: movie-guess-dev
build:
context: .
dockerfile: docker/Dockerfile
target: development
networks:
- movie-guess-network
# ports:
# - 8080:8080
command: ["tail", "-f", "/dev/null"] # NOTE: For testing the container
restart: "no"
develop:
watch:
# Sync the working directory with the `/app` directory in the container
- action: sync
path: .
target: /app
# Exclude the project virtual environment
ignore:
- .venv/
# Rebuild the image on changes to the `pyproject.toml`
- action: rebuild
path: ./pyproject.toml
movie-guess-prod:
image: movie-guess-prod:latest
container_name: movie-guess-prod
build:
context: .
dockerfile: docker/Dockerfile
target: production
networks:
- movie-guess-network
# ports:
# - 8080:8080
command: ["tail", "-f", "/dev/null"] # NOTE: For testing the container
restart: "no"