-
Notifications
You must be signed in to change notification settings - Fork 51
/
docker-compose.yml
72 lines (70 loc) · 1.48 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
version: '3.7'
#services describe the containers that will start
services:
# api is the container name for our Go API
api:
# It will look for a Dockerfile in the project root and build it
build: "."
# Exposes the port 1421 from a container and binds it to a random port
ports:
- "1421:1421"
expose:
- "1421"
# If the container goes down, it will restart
restart: "always"
# networks:
# - default
depends_on:
- mariadb
- redis
- rabbitmq
links:
- mariadb
- redis
- rabbitmq
# Connects the API to a common api.network bridge
# Starts up 5 replicas of the same image
# deploy:
# replicas: 5
redis:
image: redis:alpine
container_name: fiber-redis
# hostname: redis
ports:
- "6379:6379"
expose:
- "6379"
# networks:
# - default
mariadb:
image: mariadb:latest
container_name: fiber-mariadb
# hostname: mariadb
# networks:
# - default
# volumes:
# - ./backup:/backup
ports:
- "3307:3306"
expose:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=root
rabbitmq:
image: rabbitmq:3-management
# networks:
# - default
container_name: fiber-rabbitmq
# hostname: rabbitmq
ports:
# Management port
- "15672:15672"
# Service port
- "5672:5672"
expose:
- "15672"
- "5672"
# networks:
# default:
# driver: bridge
# name: fiber-boilerplate