-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1.07 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
version: "3"
services:
startersaas-go-api:
container_name: startersaas-go-api
build:
context: .
dockerfile: docker/dev/Dockerfile
volumes:
- ./:/go/src/app/
- ./go.mod:/go/src/app/go.mod
ports:
- "${APP_PORT}:3000"
env_file:
- .env
networks:
- startersaas-network
depends_on:
- startersaas-redis
- startersaas-mongo
startersaas-redis:
image: "redis:alpine"
ports:
- "${REDIS_PORT}:6379"
env_file:
- .env
volumes:
- redis:/data
networks:
- startersaas-network
startersaas-mongo:
image: mongo:7.0
volumes:
- mongo:/data/db
ports:
- "${MONGO_PORT}:27017"
env_file:
- .env
networks:
- startersaas-network
startersaas-mailhog:
image: mailhog/mailhog
logging:
driver: 'none' # disable saving logs
ports:
- "${MAILHOG_UI_PORT}:8025" # web ui
env_file:
- .env
networks:
- startersaas-network
volumes:
redis:
mongo:
networks:
startersaas-network:
external: true