-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
98 lines (89 loc) · 2.87 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '2'
services:
mongodbhost_quokka:
image: mongo:3.3.5
# TODO: init quokka migrate and populate with default
# manage accounts_createsuperuser
# manage populate
quokka:
build:
context: .
dockerfile: dockerfiles/Dockerfile.quokka.python27
command: uwsgi --ini uwsgi.ini
volumes:
- ./quokka:/app
- ./docker/quokka/local_settings.py:/app/quokka/local_settings.py
- ./docker/quokka/uwsgi.ini:/app/uwsgi.ini
- ./config/newrelic.ini:/app/newrelic.ini
links:
- mongodbhost_quokka:mongodbhost
ports:
- "3000:3000"
security_opt:
- seccomp:unconfined
tcell_local_quokka:
build:
context: .
dockerfile: dockerfiles/Dockerfile.quokka.python27
command: sh -c "pip install --upgrade /tcellagent_src && uwsgi --ini uwsgi.ini"
volumes:
- ../pythonagent-tcell:/tcellagent_src
- ./quokka:/app
- ./docker/quokka/local_settings.py:/app/quokka/local_settings.py
- ./docker/quokka/uwsgi.ini:/app/uwsgi.ini
- ./docker/quokka/wsgi.py:/app/docker-wsgi.py
- ./config/newrelic.ini:/app/newrelic.ini
- ./config/tcell_agent.config:/app/tcell_agent.config
links:
- mongodbhost_quokka:mongodbhost
ports:
- "3000:3000"
environment:
- USE_TCELL=1
- USE_NEWRELIC=1
security_opt:
- seccomp:unconfined
postgreshost_fbe:
image: postgres:latest
init_postgreshost_fbe:
image: postgres
working_dir: /build
command: sh -c "psql -h postgreshost -p 5432 -d postgres -U postgres -tc \"SELECT 1 FROM pg_database WHERE datname = 'fbe'\" | grep -q 1 || psql -h postgreshost -p 5432 -U postgres -c \"CREATE DATABASE fbe\""
links:
- postgreshost_fbe:postgreshost
fbe:
build:
context: .
dockerfile: dockerfiles/Dockerfile.fbe.python35
command: sh -c "redis-server & python worker.py & python app.py"
volumes:
- ./flask-by-example:/app
- ./config/newrelic.ini:/app/newrelic.ini
links:
- postgreshost_fbe:postgreshost
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://postgres@postgreshost/fbe
- APP_SETTINGS=config.DevelopmentConfig
security_opt:
- seccomp:unconfined
tcell_local_fbe:
build:
context: .
dockerfile: dockerfiles/Dockerfile.fbe.python35
command: sh -c "pip install --upgrade /tcellagent_src; redis-server & python worker.py & tcell_agent run python app.py"
volumes:
- ../pythonagent-tcell:/tcellagent_src
- ./flask-by-example:/app
- ./config/newrelic.ini:/app/newrelic.ini
- ./config/tcell_agent.config:/app/tcell_agent.config
links:
- postgreshost_fbe:postgreshost
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://postgres@postgreshost/fbe
- APP_SETTINGS=config.DevelopmentConfig
security_opt:
- seccomp:unconfined