-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 1023 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
53
version: '3'
services:
albumlist:
build:
context: .
dockerfile: Dockerfile.web
env_file:
- .env
environment:
- REDIS_HOST=redis
- REDIS_URL=redis://redis:6379
- APP_SETTINGS=config.StagingConfig
- DATABASE_URL=postgres://postgres:postgres@db:5432/postgres
- PORT=5000
links:
- redis
- db
ports:
- "5000:5000"
daemon:
build:
context: .
dockerfile: Dockerfile.worker
env_file:
- .env
environment:
- REDIS_HOST=redis
- REDIS_URL=redis://redis:6379
- PYTHONUNBUFFERED=0
- APP_SETTINGS=config.StagingConfig
- DATABASE_URL=postgres://postgres:postgres@db:5432/postgres
links:
- redis
- db
redis:
image: redis
ports:
- "6379:6379"
db:
build:
context: .
dockerfile: Dockerfile.postgres
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
ports:
- "5433:5432"