-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 1.08 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
version: "3.7"
services:
db:
image: ssr-stack-db
build:
context: /Users/V/go/src/github.com/vvmk/shineserver/
dockerfile: db.dev.dockerfile
ports:
- "5432:5432"
env_file:
- ./scratch/db-vars.env
volumes:
- db-data:/var/lib/postgresql/data
networks:
- ssr-net
deploy:
placement:
constraints: [node.role == manager]
shineserver:
image: ssr-stack-shineserver
build:
context: /Users/V/go/src/github.com/vvmk/shineserver/
dockerfile: shineserver.dev.dockerfile
ports:
- "8001:8001"
networks:
- ssr-net
depends_on:
- db
env_file:
- ./scratch/shineserver-vars.env
web:
image: ssr:0.1.0
build:
context: .
dockerfile: web.prod.dockerfile
ports:
- "80:80"
networks:
- ssr-net
networks:
ssr-net:
driver: overlay
volumes:
db-data: