-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (57 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
62 lines (57 loc) · 1.08 KB
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
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: easy_trans
networks:
- EasyNetwork
ports:
- "4000:4000"
volumes:
- .:/app
env_file:
- .env
depends_on:
redis:
condition: service_healthy
redis:
image: redis
container_name: easy_redis
networks:
- EasyNetwork
volumes:
- redis_data:/data
ports:
- "127.0.0.1:6382:6379"
command: [ "redis-server", "--requirepass", "${REDIS_PASSWORD}" ]
env_file:
- .env
healthcheck:
test: [ "CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping" ]
interval: 5s
timeout: 3s
retries: 5
celery:
build:
context: .
dockerfile: Dockerfile.celery
restart: always
container_name: easy_celery
networks:
- EasyNetwork
env_file:
- .env
# nginx:
# image: nginx:latest
# ports:
# - "80:80"
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
# depends_on:
# - app
networks:
EasyNetwork:
driver: bridge
volumes:
redis_data: