-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
64 lines (60 loc) · 1.29 KB
/
docker-compose.prod.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
version: "3"
services:
nutmeg-slackbot:
container_name: nsb
build: ./slackbot
env_file:
- env/prd.env
volumes:
- ./slackbot:/work
ports:
- 3000:3000
tty: true
command: "python main.py"
depends_on:
- mongo
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- 27017:27017
volumes:
- ./mongo:/data/db
- ./mongo:/data/configdb
api:
container_name: "api"
build:
context: ./api
volumes:
- ./api:/go/src/work
ports:
- "1323:1323"
command: "./start.sh"
depends_on:
- mongo
view:
build: ./view
container_name: "view"
volumes:
- ./view:/app
command: "npm run start"
ports:
- "3001:3001"
stdin_open: true
tty: true
depends_on:
- api
env_file:
- env/prd.env
environment:
NEXT_PUBLIC_SSR_API_URI: "https://relation-slack-api.nutfes.net"
NEXT_PUBLIC_CSR_API_URI: "https://relation-slack-api.nutfes.net"
# tunnelName: relation-slack-prd
cloudflare:
image: "cloudflare/cloudflared:latest"
container_name: "cloudflare"
volumes: ["./cloudflare/production:/home/nonroot/.cloudflared"]
command: tunnel run