-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
92 lines (83 loc) · 2.02 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: "3.7"
services:
web:
image: eisandbar/filesync:nginx
build:
context: ./nginx/
dockerfile: Dockerfile
depends_on:
- app
- upload
- stream
restart: on-failure
networks:
web:
ports:
- "0.0.0.0:5100:5100"
- "0.0.0.0:5300:5300"
- "0.0.0.0:5500:5500"
app:
image: eisandbar/filesync:app
build: ./src/server
# deploy:
# replicas: 3
depends_on:
- db
volumes:
- ./:/app
networks:
- db
- web
restart: on-failure
environment:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: secret
POSTGRES_DB: pgdb
DB_HOST: db
DB_PORT: 5432
upload:
image: eisandbar/filesync:upload
build: ./src/muxer
# deploy:
# replicas: 3
depends_on:
- app
volumes:
- ./:/app
networks:
- files
- web
restart: on-failure
stream:
image: eisandbar/filesync:stream
build: ./src/streamer
# deploy:
# replicas: 3
volumes:
- ./:/app
networks:
- files
- web
restart: on-failure
db:
image: postgres
volumes:
- ./postgres/conf/my-postgres.conf:/etc/postgresql/postgresql.conf
# - ./postgres/conf/pg_hba.conf:/etc/postgresql/pg_hba.conf
- ./postgres/data:/var/lib/postgresql/data
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
networks:
- db
environment:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: secret
POSTGRES_DB: pgdb
networks:
web:
driver: bridge
db:
driver: bridge
files:
driver: bridge
volumes:
postgres: