-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
56 lines (50 loc) · 1.14 KB
/
docker-compose-dev.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
version: '3'
services:
db:
image: postgres
volumes:
- postgres_data_user_service:/var/lib/postgresql/data/
env_file:
- ./services/database/.env
ports:
- 5432:5432
blog-user-management-service:
build:
context: services/web
dockerfile: Dockerfile.dev
volumes:
- .:/usr/src/app
expose: # new
- 5000
env_file:
- ./services/web/.env
depends_on:
- db
- redis
labels: # new
- "traefik.enable=true"
- "traefik.http.routers.flask.rule=Host(`flask.localhost`)"
celery-worker:
build:
context: services/web
dockerfile: Dockerfile.dev
command: celery --app manage.celery worker --loglevel=info
volumes:
- .:/usr/src/app
env_file:
- ./services/web/.env
depends_on:
- blog-user-management-service
- redis
redis:
image: redis:6-alpine
traefik: # new
image: traefik:v2.2
ports:
- 80:80
- 8081:8080
volumes:
- "./services/traefik/traefik.dev.toml:/etc/traefik/traefik.toml"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
volumes:
postgres_data_user_service: