-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (36 loc) · 1013 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
version: '2'
services:
database:
image: mysql:5.6
restart: always
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci --init-connect='SET NAMES UTF8;' --innodb-flush-log-at-trx-commit=0
environment:
MYSQL_ROOT_PASSWORD: foradian
MYSQL_DATABASE: fedena_ultimate
volumes:
- "./mysql/data:/var/lib/mysql"
- "./mysql/backup:/backup"
ports:
- "3307:3306"
networks:
vpcbr:
ipv4_address: 11.11.0.2
web:
build: .
# volumes:
# - "./html/:/var/www/html"
ports:
- "3001:3000"
restart: always
tty: true
command: bash -c 'rake db:create && rake fedena:plugins:install_all && script/server'
networks:
vpcbr:
ipv4_address: 11.11.0.3
networks:
vpcbr:
driver: bridge
ipam:
config:
- subnet: 11.11.0.0/16
gateway: 11.11.0.1