-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (64 loc) · 1.33 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
version: '2'
networks:
app-tier:
driver: bridge
services:
nginx:
build: ./nginx/
links:
- api
networks:
- app-tier
ports:
- "8080:80"
mongodb:
build: ./db
volumes:
- ./db/mongodb:/var/lib/mongodb
ports:
- "27017:27017"
environment:
- MONGODB_USERNAME=${MONGODB_USERNAME}
- MONGODB_PASSWORD=${MONGODB_PASSWORD}
- MONGODB_DATABASE=${MONGODB_DATABASE}
- MONGODB_ROOT_USERNAME=${MONGODB_ROOT_USERNAME}
- MONGODB_ROOT_PASSWORD=${MONGODB_ROOT_PASSWORD}
networks:
- app-tier
api:
build:
context: ./api
args:
app_env: ${APP_ENV}
volumes:
- ./api:/go/src/github.com/hugominas/gomore/api
ports:
- "5000:5000"
links:
- mongodb
networks:
- app-tier
frontend:
build:
context: ./frontend
args:
app_env: ${APP_ENV}
volumes:
- ./frontend/src:/frontend/src
ports:
- "3000:3000"
rabbit1:
image: "rabbitmq:3-management"
hostname: "rabbit1"
environment:
RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG"
RABBITMQ_DEFAULT_USER: "rabbitmq"
RABBITMQ_DEFAULT_PASS: "rabbitmq"
RABBITMQ_DEFAULT_VHOST: "/"
ports:
- "15672:15672"
- "5672:5672"
labels:
NAME: "rabbitmq1"
networks:
- app-tier