-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-compose.yml
65 lines (61 loc) · 1.66 KB
/
docker-compose.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
version: '2'
services:
db:
image: mdillon/postgis:9.5
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
app:
image: quay.io/skygeario/skygear-server:canary
ports:
- "3000:3000"
volumes:
- app_data:/app/data
depends_on:
- db
command: skygear-server --http
environment:
# `db` in the following string should match the name of the database
# container above.
DATABASE_URL: postgresql://postgres:@db/postgres?sslmode=disable
API_KEY: changeme
MASTER_KEY: secret
APP_NAME: _
TOKEN_STORE: jwt
TOKEN_STORE_SECRET: jwt_secret
ASSET_STORE: fs
ASSET_STORE_URL_PREFIX: http://localhost:3000/files
ASSET_STORE_SECRET: asset-secret
# GOMAXPROCS - The maximum number of Go threads for execution.
# When unspecified, the default is the number of CPU available, which
# is the recommended setting.
#GOMAXPROCS: 1
PLUGINS: PYTHON
PYTHON_TRANSPORT: http
PYTHON_PATH: http://plugin:8000
plugin:
build:
context: .
dockerfile: Dockerfile-development
command: py-skygear --http
volumes:
- .:/usr/src/app
environment:
DATABASE_URL: postgres://postgres@db/postgres?sslmode=disable
API_KEY: changeme
MASTER_KEY: secret
APP_NAME: _
ASSET_STORE: fs
ASSET_STORE_URL_PREFIX: http://localhost:3000/files
ASSET_STORE_SECRET: asset-secret
PUBSUB_URL: ws://app:3000/pubsub
SKYGEAR_ADDRESS: tcp://app:5555
SKYGEAR_ENDPOINT: http://app:3000
volumes:
redis_data:
driver: local
db_data:
driver: local
app_data:
driver: local