-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (53 loc) · 1.05 KB
/
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
54
55
56
57
58
version: '3'
services:
backend:
build: ./backend
ports:
- "3000:3000"
depends_on:
- postgres
networks:
- backend-network
- frontend-network
frontend:
build: ./frontend
ports:
- "80:80"
depends_on:
- backend
networks:
- frontend-network
postgres:
image: postgres:13.1
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "root" ]
timeout: 45s
interval: 10s
retries: 10
restart: always
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
- APP_DB_USER=docker
- APP_DB_PASS=docker
- APP_DB_NAME=docker
volumes:
- ./db:/docker-entrypoint-initdb.d/
ports:
- 5432:5432
networks:
- backend-network
redis:
image: redis:5.0.3
restart: always
environment:
- REDIS_PASSWORD=docker
- REDIS_HOST=localhost
- REDIS_PORT=6379
ports:
- 6379:6379
networks:
- backend-network
networks:
frontend-network:
backend-network: