-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
81 lines (80 loc) · 1.95 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
78
79
80
81
version: '3.8'
services:
db:
image: postgres:12.7-alpine
environment:
TZ: UTC
PGTZ: UTC
POSTGRES_PORT: $POSTGRES_PORT
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
volumes:
- ./ruby/tmp/db:/var/lib/postgresql/data
ports:
- "$POSTGRES_PORT:$POSTGRES_PORT"
ruby:
build:
context: ./ruby
args:
WORKDIR: $WORKDIR
environment:
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
SLACK_WEBHOOK_URL: $SLACK_WEBHOOK_URL
EDINET_API_KEY: $EDINET_API_KEY
volumes:
- ./ruby:/$WORKDIR
- bundle_cache:/$WORKDIR/vendor/bundle
depends_on:
- db
command: /bin/sh -c "echo rails api is not used."
go:
build:
context: ./go
environment:
FRONT_URL: $FRONT_URL
ENV: development
PORT: $API_HOST_PORT
GOBIN: /go/src/bin
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
DATABASE_HOST_URL: $DATABASE_HOST_URL
DATABASE_URL: $DATABASE_URL
POSTGRES_TEST_NAME: $POSTGRES_TEST_NAME
POSTGRES_TEST_USER: $POSTGRES_TEST_USER
DATABASE_TEST_URL: $DATABASE_TEST_URL
command: air
volumes:
- ./go:/go/src
depends_on:
- db
ports:
- "$API_HOST_PORT:$API_HOST_PORT"
typescript:
build:
context: ./typescript
args:
WORKDIR: $WORKDIR
environment:
WATCHPACK_POLLING: true
PORT: $FRONT_HOST_PORT
NEXT_PUBLIC_API_URL: $NEXT_PUBLIC_DOCKER_API_URL
NEXT_PUBLIC_TWITTER_ID: $NEXT_PUBLIC_TWITTER_ID
command: npm run dev
volumes:
- ./typescript:/$WORKDIR
- /$WORKDIR/node_modules
ports:
- "$FRONT_HOST_PORT:$FRONT_HOST_PORT"
depends_on:
- db
swagger:
image: swaggerapi/swagger-ui
volumes:
- ./openapi:/usr/share/nginx/html/doc
ports:
# NOTE: ホストからは8000で接続する
- 8000:8080
environment:
API_URL: doc/openapi.yaml
volumes:
go_src_bin:
bundle_cache: