-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
64 lines (63 loc) · 1.4 KB
/
docker-compose.yaml
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
version: '3.8'
services:
mongo:
container_name: fnote-mongo
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: fnote
MONGO_INITDB_ROOT_PASSWORD: fnote
MONGO_INITDB_DATABASE: fnote
MONGO_USERNAME: fnote-user
MONGO_PASSWORD: 12345678
volumes:
- /tmp/fnote/mongo_data:/data/db
- ./script/mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh
- ./script/mongo-data-init.sh:/docker-entrypoint-initdb.d/mongo-data-init.sh
ports:
- "27017:27017"
command:
- --auth
networks:
- fnote-network
server:
container_name: fnote-server
image: fnote/fnote-server:latest
build:
dockerfile: Dockerfile
context: ./server
ports:
- "8080:8080"
depends_on:
- mongo
volumes:
- /tmp/fnote/logs:/fnote/logs
- /tmp/fnote/static:/fnote/static
networks:
- fnote-network
admin:
container_name: fnote-admin
image: fnote/fnote-admin:latest
build:
dockerfile: Dockerfile
context: ./admin
ports:
- "8081:80"
depends_on:
- server
networks:
- fnote-network
web:
container_name: fnote-web
image: fnote/fnote-web:latest
build:
dockerfile: Dockerfile
context: ./web
ports:
- "3000:3000"
depends_on:
- server
networks:
- fnote-network
networks:
fnote-network:
driver: bridge