-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (28 loc) · 819 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (28 loc) · 819 Bytes
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
mongo:
image: mongo:2.6
local: &LOCAL
build: .
command: gin
ports:
- 3000
volumes:
- .:/go/src/github.com/maxcnunes/go-uptime-api
- /var/run/docker.sock:/tmp/docker.sock
environment: &LOCAL-ENVIRONMENT
MONGODB_DATABASE: go-uptime-api
VIRTUAL_PORT: 3000
VIRTUAL_HOST: go-uptime-api.local.dockito.org
PORT_BEHIND_PROXY: 3001
CHECK_TARGETS_AT_EVERY: 1m # 1 minute
EMAIL_FROM: # gets environment variable from machine
EMAIL_USERNAME: # gets environment variable from machine
EMAIL_PASSWORD: # gets environment variable from machine
EMAIL_HOST: smtp.gmail.com
links:
- mongo:mongo
test:
<<: *LOCAL
command: ginkgo watch -v -p -r -race -failOnPending -randomizeAllSpecs
environment:
<<: *LOCAL-ENVIRONMENT
MONGODB_DATABASE: go-uptime-api-test