-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
56 lines (52 loc) · 1.16 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
version: "3"
services:
cloudflare:
image: cloudflare/cloudflared:latest
container_name: "seeds_cloudflare"
volumes:
- ./cloudflare/prod:/home/nonroot/.cloudflared
command: tunnel run
seeds_api:
build: ./api
container_name: "seeds_api"
ports:
- "3000:3000"
command: bash -c "bundle exec pumactl start"
volumes:
- ./api:/myapp
stdin_open: true
tty: true
environment:
- RAILS_ENV=production
- RAILS_LOG_TO_STDOUT=ON
env_file:
- seeds.env
seeds_view:
build: ./view
container_name: "seeds_view"
ports:
- 8080:8080
command: bash -c "npm run start"
volumes:
- ./view:/app
- ./view/next-project/node_modules:/app/node_modules
stdin_open: true
tty: true
environment:
- SEEDS_API_URI=https://seeds-api.nutfes.net
- NODE_ENV=production
# 定期実行用コンテナ
cron:
image: nutmeg-seeds_seeds_api:latest
command: >
sh -c "whenever --update-cron &&
cron -f -l 2"
restart: always
volumes:
- ./api:/usr/src/app
depends_on:
- seeds_api
volumes:
mysql-data:
driver: local
code_share: