-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
154 lines (154 loc) · 3.49 KB
/
docker-compose.test.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: '3.2'
volumes:
bundle_cache: {}
scrapy_shared:
db_data:
db_backup:
api_data:
# bot_data:
search_data:
scrapydo_data:
splash_data:
# mongo_data:
services:
app:
build:
context: ./web
dockerfile: ./Dockerfile
depends_on:
- db
- api
# - search
# - bot
- scrapy
volumes:
- scrapy_shared:/var/www/scrapy/data
- bundle_cache:/bundle
- ./web/app:/var/www/alegreme/app
- ./web/config:/var/www/alegreme/config
- ./web/db/backups:/var/www/alegreme/db/backups
- ./web/test:/var/www/alegreme/test
- ./storage:/var/www/alegreme/storage
environment:
RAILS_ENV: test
RACK_ENV: test
RAILS_SERVE_STATIC_FILES: 'false'
PGHOST: db
PGUSER: postgres
# AWS_ACCESS_KEY_ID: REMOVED
# AWS_SECRET_ACCESS_KEY: REMOVED
# AWS_BUCKET: alegreme-event-cover
API_URL: http://api
ELASTICSEARCH_URL: http://search:9200
IS_DOCKER: 'true'
HTTP_HOST: 'alegreme.com'
NODE_ENV: test
links:
# - api
- db
# - search
restart: always
ports:
- 3000:3000
db:
image: postgres
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: docker
POSTGRES_DB: db
TZ: 'America/Sao_Paulo'
PGTZ: 'America/Sao_Paulo'
ports:
- 5432:5432
restart: always
# web:
# build:
# context: ./web
# dockerfile: ./docker/web/Dockerfile
# depends_on:
# - app
# ports:
# - 80:80
# - 443:443
# volumes:
# - ./data/certbot/conf:/etc/letsencrypt
# - ./data/certbot/www:/var/www/certbot
# restart: always
# certbot:
# image: certbot/certbot
# volumes:
# - ./data/certbot/conf:/etc/letsencrypt
# - ./data/certbot/www:/var/www/certbot
api:
build:
context: ./ml
dockerfile: ./Dockerfile
ports:
- "5000:5000"
volumes:
- api_data:/var/www/api/data
- scrapy_shared:/var/www/scrapy/data
environment:
IS_DOCKER: 'true'
# bot:
# build:
# context: ./bot
# dockerfile: ./Dockerfile
# ports:
# - "3030:3030"
# volumes:
# - bot_data:/var/www/bot/data
# environment:
# MONGO_URI: mongodb://jon:password@mongo:27017
# PRIVATE_IP: '172.26.14.59'
# PUBLIC_IP: '3.209.95.87'
# WEB_DOMAIN: 'https://www.alegreme.com'
# restart: always
# depends_on:
# - mongo
# search:
# build:
# context: ./search
# dockerfile: ./Dockerfile
# environment:
# discovery.type: single-node
# ports:
# - "9200:9200"
# volumes:
# - search_data:/var/www/search/data
# restart: always
scrapy:
build:
context: ./scrapy
dockerfile: ./Dockerfile
environment:
SPLASH_URL: http://splash:8050
IS_DOCKER: 'true'
# PRIVATE_IP: '172.26.14.59'
# PUBLIC_IP: '3.209.95.87'
depends_on:
- splash
volumes:
- scrapy_shared:/var/www/scrapy/data
- scrapydo_data:/var/www/scrapy/projects
ports:
- "7654:7654"
restart: always
splash:
image: scrapinghub/splash
ports:
- "8050:8050"
- "5023:5023"
restart: always
volumes:
- splash_data:/var/www/splash/data
# mongo:
# image: mongo:4.1
# restart: always
# environment:
# MONGO_INITDB_ROOT_USERNAME: jon
# MONGO_INITDB_ROOT_PASSWORD: password
# volumes:
# - mongo_data:/data/db