-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 1.03 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
version: "3.7"
services:
spring-boot:
container_name: spring-boot
restart: always
build: ./warren-burffett-server
depends_on:
- postgres
- redis
ports:
- "8080:8080"
# nextjs:
# container_name: nextjs
# image: node:12-alpine
# command: sh -c "npm install && npm start"
# ports:
# - 3000:3000
# working_dir: /app
# volumes:
# - ./react-social:/app
# networks:
# - front_network
postgres:
container_name: postgres
image: postgres:latest
restart: always
networks:
- db_network
ports:
- "5432:5432"
volumes:
- ./db:/var/lib/postgresql
- ./init.sql:/docker-entrypoint-initdb.d/1-init.sql
environment:
- POSTGRES_USER=test
- POSTGRES_DATABASE=postgres
- POSTGRES_PASSWORD=1234
- TZ=Asia/Seoul
redis:
container_name: redis
image: redis:latest
restart: always
command: redis-server --port 6379
hostname: localhost
ports:
- "6379:6379"
networks:
db_network:
front_network: