-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
77 lines (72 loc) · 1.76 KB
/
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
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
db:
image: postgis/postgis:16-3.4
environment:
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_DB: ${DATABASE_NAME}
TZ: Asia/Tokyo
volumes:
- ${DATA_DIRECTORY}/db:/var/lib/postgresql/data
redis:
image: redis:7
api:
build:
context: ./server
target: dev
ports:
- "3333:3333"
depends_on:
- db
- redis
environment:
TZ: Asia/Tokyo
PORT: ${PORT}
NODE_ENV: ${NODE_ENV}
SESSION_SECRET: ${SESSION_SECRET}
FILE_STORE_PATH: ${FILE_STORE_PATH}
TOKEN_SECRET: ${TOKEN_SECRET}
LINE_TOKEN: ${LINE_TOKEN}
LINE_SECRET: ${LINE_SECRET}
LINE_ALLOW_BROADCAST: ${LINE_ALLOW_BROADCAST}
LINE_REPORT_KEYWORD: ${LINE_REPORT_KEYWORD}
DATABASE_HOST: ${DATABASE_HOST}
DATABASE_PORT: ${DATABASE_PORT}
DATABASE_NAME: ${DATABASE_NAME}
DATABASE_USER: ${DATABASE_USER}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
REDIS_HOST: redis
command: [ "./wait-for-postgres.sh","./docker-entrypoint.sh" ]
volumes:
- ./server/src:/app/src
- ./server/test:/app/test
- ./server/logs:/app/logs
- ${DATA_DIRECTORY}/app:/data
dashboard:
build:
context: ./dashboard
target: dev
ports:
- "3000:3000"
environment:
NODE_ENV: ${NODE_ENV}
volumes:
- ./dashboard:/app
- /app/node_modules
- /app/.nuxt
nginx:
image: nginx:1.19
ports:
- "8080:8080"
depends_on:
- api
- dashboard
volumes:
- ./nginx/nginx.conf:/etc/nginx/templates/default.conf.template:ro
environment:
- NGINX_PORT=8080
- SERVER_HOST=api
- DASHBOARD_HOST=dashboard
networks:
kobe_botlab:
external: true