-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.08 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.08 KB
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
52
53
54
55
56
version: '3.8'
services:
distance-microservice:
build: ./CoordinatesAPI
networks:
- rental
command: flask --app address run --host 0.0.0.0
ports:
- "5000:5000"
expose:
- 5000
env_file:
- ./.env.coordinates
main-api:
build:
context: .
dockerfile: RentalAPI/Dockerfile
depends_on:
- db
- distance-microservice
networks:
- rental
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/app
ports:
- "8000:8000"
expose:
- 8000
env_file:
- ./.env.rental
- ./.env.coordinates
db:
image: mysql
networks:
- rental
restart: unless-stopped
ports:
- "3307:3306"
volumes:
- mysql_data:/var/lib/mysql
environment:
MYSQL_USER: rental_database_user
MYSQL_PASSWORD: rental_database_password
MYSQL_ROOT_PASSWORD: rental_root_database_password
MYSQL_DATABASE: rental_database
MYSQL_DATABASE_HOST: db
MYSQL_DATABASE_PORT: 3306
networks:
rental:
driver: bridge
volumes:
mysql_data: