Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (44 sloc) 1.04 KB
version: '2.0'
services:
app:
depends_on:
- redis
build: .
volumes:
- .:/app
- ./var/:/fogger
environment:
SOURCE_DATABASE_URL: mysql://user:pass@source:3306/source
TARGET_DATABASE_URL: mysql://user:pass@target:3306/target
RABBITMQ_URL: amqp://user:pass@rabbit:5672
REDIS_URL: redis://redis
worker:
depends_on:
- redis
build: .
volumes:
- .:/app
- ./var/:/fogger
environment:
SOURCE_DATABASE_URL: mysql://user:pass@source:3306/source
TARGET_DATABASE_URL: mysql://user:pass@target:3306/target
RABBITMQ_URL: amqp://user:pass@rabbit:5672
REDIS_URL: redis://redis
restart: always
command: fogger:consumer
redis:
image: redis:4
source:
environment:
MYSQL_DATABASE: source
MYSQL_PASSWORD: pass
MYSQL_ROOT_PASSWORD: pass
MYSQL_USER: user
image: mysql:5.7
target:
environment:
MYSQL_DATABASE: target
MYSQL_PASSWORD: pass
MYSQL_ROOT_PASSWORD: pass
MYSQL_USER: user
image: mysql:5.7
You can’t perform that action at this time.