This repository has been archived by the owner on Oct 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
76 lines (71 loc) · 1.75 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
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
version: "2"
services:
# application
api:
build: .
command: runserver migrate
depends_on:
- mysql
ports:
- "80:80"
- "8000:8000"
volumes:
- ./app:/src/app
environment:
- DJANGO_DEBUG=true
- CLOUDFILES_IMAGES_PREFIX=marc_images_
- SNAP_AUTHENTICATION=false
- SNAP_AUTHORIZATION=false
- DATABASE_HOST=mysql
- DATABASE_NAME=snapabledb
- DATABASE_USER=snapableusr
- DATABASE_PASSWORD=snapable12345
- REDIS_HOST=redis
- REDIS_PORT=6379
- ETCD_HOST=192.168.50.11
entrypoint: /wait-for-it.sh mysql:3306 -- /entrypoint.sh
worker:
build: .
command: worker
depends_on:
- mysql
volumes:
- ./app:/src/app
environment:
- DJANGO_DEBUG=true
- CLOUDFILES_IMAGES_PREFIX=marc_images_
- DATABASE_HOST=mysql
- DATABASE_NAME=snapabledb
- DATABASE_USER=snapableusr
- DATABASE_PASSWORD=snapable12345
- REDIS_HOST=redis
- REDIS_PORT=6379
- ETCD_HOST=192.168.50.11
entrypoint: /wait-for-it.sh mysql:3306 -- /entrypoint.sh
beat:
build: .
command: beat
depends_on:
- mysql
environment:
- DJANGO_DEBUG=true
- CLOUDFILES_IMAGES_PREFIX=marc_images_
- DATABASE_HOST=mysql
- DATABASE_NAME=snapabledb
- DATABASE_USER=snapableusr
- DATABASE_PASSWORD=snapable12345
- REDIS_HOST=redis
- REDIS_PORT=6379
- ETCD_HOST=192.168.50.11
# third-party
mysql:
image: mysql:5.5
ports:
- "3306:3306" # to connect with an SQL client
environment:
- MYSQL_ROOT_PASSWORD=mysqlpass
- MYSQL_USER=snapableusr
- MYSQL_PASSWORD=snapable12345
- MYSQL_DATABASE=snapabledb
redis:
image: redis:3.0-alpine