forked from TheSoftwareHouse/fogger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (44 loc) · 1.04 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
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