-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
60 lines (59 loc) · 1.31 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
57
58
59
60
version: "3.8"
services:
postgres:
container_name: "quests_db"
image: "postgres:latest"
restart: always
user: postgres
volumes:
- quests_db_volume:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=quests_db
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
redis:
container_name: "quests_redis"
image: "redis:latest"
restart: always
user: redis
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
server:
build:
context: .
args:
PROJECT: quests_server
dockerfile: Dockerfile
ports:
- "3000:3000"
- "3001:3001"
restart: always
environment:
- DATABASE_URL=postgres://postgres:postgres@quests_db:5432/quests_db
- REDIS_URL=quests_redis:6379
depends_on:
- postgres
- redis
system:
build:
context: .
args:
PROJECT: quests_system
dockerfile: Dockerfile
restart: always
depends_on:
- postgres
- redis
environment:
- DATABASE_URL=postgres://postgres:postgres@quests_db:5432/quests_db
- REDIS_URL=quests_redis:6379
volumes:
quests_db_volume: