-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (56 loc) · 1.18 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
59
60
version: '3'
services:
app:
container_name: airbnb
#image: "node-airbnb:test"
build:
context: .
dockerfile: ./node.Dockerfile
ports:
- "5000:5000"
links:
- db
networks:
- backend
nginx:
container_name: nginx
#image: "nginx:test"
build:
context: .
dockerfile: ./nginx.Dockerfile
ports:
- "8080:8080"
networks:
- backend
depends_on:
- app
db:
container_name: airbnbDB
image: mysql:8.0.17
command: --default-authentication-plugin=mysql_native_password
# volumes:
# - "airbnb:/var/lib/mysql"
restart: always
# ports:
# - 3300:3306
environment:
MYSQL_DATABASE: "airbnb"
#MYSQL_USER: "root"
#MYSQL_PASSWORD: "rootUser1Go!"
MYSQL_ROOT_PASSWORD: "rootUser1Go!"
networks:
- backend
redis:
container_name: airbnbRedis
image: redis:5.0.6-alpine
ports:
- "6379:6379"
#volumes:
# - airbnb:/data/redis
restart: always
networks:
- backend
networks: # 가장 기본적인 bridge 네트워크
backend:
driver: bridge
#volumes: airbnb: