forked from SkygearIO/skygear-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.44 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
# docker-compose.yml for Skygear
#
# This docker-compose.yml requries Docker Compose 1.6. Do not modify this
# file for local development--create `docker-compose.override.yml` to override
# settings here.
version: '2'
services:
db:
image: mdillon/postgis:9.4
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:3.0
volumes:
- redis_data:/data
app:
image: skygeario/skygear-server:latest
ports:
- "3000:3000" # Skygear Server API Endpoint (HTTP)
- "5555:5555" # Skygear Server Plugin Endpoint (ZMQ)
volumes:
- app_data:/go/src/app/data
# Uncomment the following line to override the default configuration file
#- ./development.ini:/go/src/app/development.ini
links:
- db
- redis
command: skygear-server development.ini
environment:
# `db` in the following string should match the name of the database
# container above.
DATABASE_URL: postgresql://postgres:@db/postgres?sslmode=disable
REDISTEST: redis://redis:6379
DB_IMPL_NAME: pq
API_KEY: changeme
APP_NAME: _
PGHOST: db
PGUSER: postgres
# 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
volumes:
redis_data:
driver: local
db_data:
driver: local
app_data:
driver: local