-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (48 loc) · 903 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (48 loc) · 903 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
services:
redis:
image: 'redis:alpine'
ports:
- '${FORWARD_REDIS_PORT:-6379}:6379'
volumes:
- 'redis:/data'
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
retries: 3
timeout: 5s
networks:
- kian
mongo:
image: mongo
restart: always
ports:
- '${FORWARD_MONGO_PORT:-27017}:27017'
volumes:
- 'mongo:/data/db'
networks:
- kian
environment:
- MONGO_INITDB_ROOT_USERNAME=michael
- MONGO_INITDB_ROOT_PASSWORD=secret
app:
build:
context: .
dockerfile: ./docker/app/Dockerfile
ports:
- '${FORWARD_APP_PORT:-8080}:8080'
- 6060:6060
restart: unless-stopped
depends_on:
- mongo
- redis
environment:
REDIS_URL: redis:6379
networks:
- kian
volumes:
- 'go:/go/pkg'
volumes:
mongo:
redis:
go:
networks:
kian: