-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
51 lines (46 loc) · 1.12 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
version: '3'
services:
postgresql:
container_name: postgresql
build:
context: ./src
dockerfile: Dockerfile
image: postgres:13.2
expose:
- "5432"
tty: true
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_HOST_AUTH_METHOD: "trust"
volumes:
- ./src:/docker-entrypoint-initdb.d/
# - database_volume:/var/lib/postgresql/data
# volumes:
# - ${POSTGRES_HOME_DIR}/data/:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- rualone
# rualone-backend:
# container_name: rualone-backend
# image: ${SPRING_BOOT_IMAGE}
# ports:
# - "8080:8080"
# depends_on:
# - postgresql
# command:
# [
# "--character-set-server=utf8mb4",
# "--collation-server=utf8mb4_unicode_ci",
# ]
#
# environment:
# # volumes: 프론트랑 합친 후에 볼륨 설정 예정
# SPRING.DATASOURCE.URL: jdbc:postgresql://postgresql:5432/rualone
# networks:
# - rualone
networks:
rualone:
driver: bridge