-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 987 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 987 Bytes
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
version: "3"
services:
spring-boot:
build: ../backend
container_name: fc_springboot
image: spring-boot
environment:
SPRING_DATASOURCE_URL: ${POSTGRES_URL}
SPRING_DATASOURCE_USERNAME: ${POSTGRES_USER}
SPRING_DATASOURCE_PASSWORD: ${POSTGRES_PASSWORD}
restart: on-failure
depends_on:
- postgresql
ports:
- "8080:8080"
postgresql:
container_name: fc_postgresql
image: postgres
restart: always
environment:
POSTGRES_ROOT_PASSWORD: ${POSTGRES_ROOT_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
TZ: Asia/Seoul
ports:
- "5432:5432"
redis:
image: redis:alpine
container_name: fc_redis
ports:
- "6379:6379"
nginx:
build: ./nginx
container_name: fc_nginx
restart: always
ports:
- "80:80"
depends_on:
- spring-boot