-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
58 lines (53 loc) · 1.12 KB
/
docker-compose.yaml
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
version: "3.8"
services:
nginx_server:
container_name: nginx_server
image: nginx:latest
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- "8001:80"
depends_on:
- application
networks:
- default
application:
container_name: application_server
build: .
env_file: ./proj_env.env
ports:
- "8000:8000"
depends_on:
- database
- redis
networks:
- default
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000"]
retries: 5
interval: 10s
timeout: 10s
database:
container_name: database
image: postgres:latest
environment:
POSTGRES_DB: geo_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: Kirill
command:
- -p 5435
ports:
- "5435:5435"
networks:
- default
redis:
container_name: redis_storage
image: redis:latest
ports:
- 6379:6379
networks:
- default
networks:
default:
external: true
name: geo_project_network