-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yml
52 lines (47 loc) · 995 Bytes
/
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
#
# To create database
# docker-compose run web rake db:setup
#
# Execute command to start mysql and rails:
# docker-compose up
#
version: '3.5'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
ports:
- '3306:3306'
restart: always
environment:
- MYSQL_ROOT_PASSWORD=rtb4free
- MYSQL_DATABASE=rtb4free
- MYSQL_USER=rtb4free
- MYSQL_PASSWORD=rtb4free
networks:
- r4f_net
web:
image: rtb4free/campaign-manager
ports:
- "3000:3000"
environment:
- CUSTOMER_NAME=RTB4FREE
- DB_HOST=db
- DB_PORT=3306
- DB_USERNAME=rtb4free
- DB_PASSWORD=rtb4free
- DB_NAME=rtb4free
- ELASTICSEARCH_ENABLE=false
- ELASTICSEARCH_HOST=
- ELASTICSEARCH_KIBANA_URL=
depends_on:
- db
networks:
- r4f_net
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
db_data: {}
networks:
r4f_net:
name: rtb4free_network