-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (65 loc) · 2.29 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
version: "3"
services:
apidocumentation:
build:
context: .
dockerfile: docker/slateserver.Dockerfile
image: registry.le-corre.eu:5000/innerapi:slate-alpha-doc
volumes:
- "./swagger.yaml:/tmp/swagger"
ports:
- 4567:4567
back:
build:
context: .
dockerfile: docker/gobase.Dockerfile
env_file: .env
depends_on:
- database
volumes:
- "./api:/go/src/github.com/titouanfreville/popcubeapi/api"
- "./datastores:/go/src/github.com/titouanfreville/popcubeapi/datastores"
- "./models:/go/src/github.com/titouanfreville/popcubeapi/models"
- "./utils:/go/src/github.com/titouanfreville/popcubeapi/utils"
- "./configs:/go/src/github.com/titouanfreville/popcubeapi/configs"
- "./main.go:/go/src/github.com/titouanfreville/popcubeapi/main.go"
image: registry.le-corre.eu:5000/go:base
ports:
- 3000:3000
goconvey:
build:
context: .
dockerfile: docker/goconvey.Dockerfile
env_file: .env
depends_on:
- back
volumes:
- "./api:/go/src/github.com/titouanfreville/popcubeapi/api"
- "./datastores:/go/src/github.com/titouanfreville/popcubeapi/datastores"
- "./models:/go/src/github.com/titouanfreville/popcubeapi/models"
- "./utils:/go/src/github.com/titouanfreville/popcubeapi/utils"
- "./configs:/go/src/github.com/titouanfreville/popcubeapi/configs"
- "./main.go:/go/src/github.com/titouanfreville/popcubeapi/main.go"
ports:
- 8082:8080
golint:
build:
context: .
dockerfile: docker/golint.Dockerfile
env_file: .env
volumes:
- "./api:/go/src/github.com/titouanfreville/popcubeapi/api"
- "./datastores:/go/src/github.com/titouanfreville/popcubeapi/datastores"
- "./models:/go/src/github.com/titouanfreville/popcubeapi/models"
- "./utils:/go/src/github.com/titouanfreville/popcubeapi/utils"
- "./configs:/go/src/github.com/titouanfreville/popcubeapi/configs"
- "./main.go:/go/src/github.com/titouanfreville/popcubeapi/main.go"
database:
image: mariadb:10.1
env_file: .env
hostname: database
ports:
- 3306:3306
volumes :
- ./scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./scripts/init_values.sql:/docker-entrypoint-initdb.d/init_values.sql