-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
57 lines (54 loc) · 992 Bytes
/
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
version: '3'
services:
front:
build:
context: ./admin_frontend
dockerfile: Dockerfile
container_name: sts_front
restart: always
ports:
- 8217:8217
links:
- web
volumes:
- $GOPATH
networks:
- mynet
web:
build:
context: .
dockerfile: Dockerfile
container_name: sts_web
restart: always
ports:
- 8080:8080
# Link to containers in another services
links:
- db
volumes:
- $GOPATH
networks:
- mynet
doc:
build:
context: ./api
dockerfile: Dockerfile
container_name: sts_doc
restart: always
ports:
- 8024:8080
volumes:
- $GOPATH
networks:
- mynet
db:
build:
context: ./db
dockerfile: Dockerfile
restart: always
container_name: sts_db
networks:
- mynet
networks:
mynet:
driver: "bridge"