This repository has been archived by the owner on Dec 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (85 loc) · 2.2 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#
# Ignition Robotics
# OSRF - 2019
#
#
# INSTRUCTIONS:
# This docker compose file was created to run Fuel Server and Cloudsim together
# In order to achieve this, you need to have a project structure like the one described below:
#
# bitbucket.org/ignitionrobotics
# .
# ├── db.env ---> Database enviroment variables used by MySQL container.
# ├── cloudsim.env ---> Cloudsim enviroment variables used by Cloudsim container.
# ├── docker-compose.yml ---> This file
# ├── fuel.env ---> Fuel server enviroment variables used by Fuel container.
# ├── ign-data/ ---> MySQL container volume.
# ├── ign-fuelserver/
# └── web-cloudsim/
#
# As you can see above, you need to move this file to the upper level in order to properly run the full project.
#
# IMPORTANT:
# If you want to run the cloudsim project alone, use the docker-compose.standalone.yml file instead.
#
version: '3.7'
services:
db:
image: mysql
container_name: ign_db
networks:
- db-fuel-network
- db-cloudsim-network
ports:
- '3306:3306'
volumes:
- ./ign-data:/var/lib/mysql
restart: always
env_file:
- db.env
fuel:
build:
context: ./ign-fuelserver
dockerfile: Dockerfile
container_name: ign_fuel
image: ign-fuelserver:latest
networks:
- db-fuel-network
- fuel-network
ports:
- '8000:8000'
depends_on:
- db
env_file:
- fuel.env
restart: always
cloudsim:
build:
context: ./web-cloudsim
dockerfile: Dockerfile
container_name: ign_cloudsim
image: ign-cloudsim:latest
networks:
- db-fuel-network
- db-cloudsim-network
- cloudsim-network
ports:
- '8001:8001'
depends_on:
- db
env_file:
- cloudsim.env
restart: always
networks:
db-fuel-network:
name: ign-db-fuel-network
driver: bridge
db-cloudsim-network:
name: ign-db-cloudsim-network
driver: bridge
cloudsim-network:
name: ign-cloudsim-network
driver: bridge
fuel-network:
name: ign-fuel-network
driver: bridge