-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (82 loc) · 2 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
version: '3.9'
services:
frontend:
image: sliter/memolink-frontend:latest
container_name: mlfrontend
ports:
- '80:80'
networks:
- app-network
backend:
build:
context: .
dockerfile: Dockerfile
container_name: mlbackend
restart: unless-stopped
env_file: .env
environment:
- MONGOOSE_URL=mongodb://mldb:27017/syncapp
- REDIS_HOST=mlredis
- REDIS_PORT=6379
- SYNCTHING_HOST=mlsyncthing
- SYNCTHING_PORT=8384
- SYNCTHING_API_KEY=do-not-change-memolink
- PORT=3001
expose:
- 3001
volumes:
- sync:/sync
networks:
- app-network
db:
image: mongo
container_name: mldb
restart: unless-stopped
env_file: .env
expose:
- 27017
volumes:
- dbdata:/data/db
networks:
- app-network
redis:
container_name: mlredis
image: redis
restart: unless-stopped
expose:
- 6379
volumes:
- ./conf/redis.conf:/usr/local/etc/redis/redis.conf
- redisdata:/data
command: ['redis-server', '--bind', 'mlredis', '--port', '6379']
networks:
- app-network
syncthing:
image: ghcr.io/linuxserver/syncthing
container_name: mlsyncthing
environment:
- PUID=1000
- PGID=1000
volumes:
- ./conf/syncthing:/config
- syncdata1:/data1
- syncdata2:/data2
- sync:/sync
expose:
- 8384
ports:
- 22005:22005/tcp
- 22005:22005/udp
- 21032:21032/udp
restart: unless-stopped
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
redisdata:
dbdata:
syncdata1:
syncdata2:
sync: