-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prod-scale.yml
67 lines (63 loc) · 1.36 KB
/
docker-compose-prod-scale.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
version: "3.9"
name: ${APP_CONTAINER_NAME}-container-scale
services:
node-server:
environment:
- NODE_ENV=prod
- PORT=${PORT}
- APP_NAME=${APP_NAME}
build:
context: .
dockerfile: Dockerfile.scale
args:
NODE_VERSION: ${NODE_VERSION}
PORT: ${PORT}
APP_NAME: ${APP_NAME}
volumes:
- /usr/src/app
command: npx ts-node ./src/server.ts
nginx:
image: nginx:latest
build:
context: .
dockerfile: Dockerfile.nginx
volumes:
- ./nginx:/etc/nginx/conf.d
depends_on:
- node-server
ports:
- ${PORT}:${PORT}
env_file:
- .env
# Only applicable with container images
# watchtower:
# image: containrrr/watchtower
# command:
# - "--label-enable"
# - "--interval"
# - "15"
# - "--rolling-restart"
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# CI/CD Pipeline
# webhook-listener:
# image: almir/webhook
# environment:
# - WEBHOOK_URL_PATH=/webhook
# ports:
# - "9000:9000"
# volumes:
# - .:/usr/src/app
# - ./hooks:/etc/webhook
# command:
# [
# "-hooks",
# "/etc/webhook/hooks.json",
# "-verbose",
# "-hotreload",
# "-urlprefix",
# "/webhook",
# ]
# depends_on:
# - node-server
# - nginx