-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (54 loc) · 1.07 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
61
version: '3.1'
services:
spring:
build:
context: ./airbnb-light
dockerfile: Dockerfile
ports:
- 8081:8081
- 8000:8000
restart: "no"
depends_on:
- db
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://airbnb-aws.cnd7rgpx00qm.us-east-1.rds.amazonaws.com:3306/airbnb?useSSL=false
SPRING_DATASOURCE_USERNAME: admin
SPRING_DATASOURCE_PASSWORD: aqzsaqzs
networks:
- back
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: "no"
environment:
- MYSQL_ROOT_PASSWORD=nimporte
- MYSQL_DATABASE=airbnb
ports:
- 3336:3306
volumes:
- db-data:/var/lib/mysql
networks:
- back
adminer:
image: adminer
restart: "no"
depends_on:
- db
ports:
- 8082:8080
networks:
- back
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
environment:
- PMA_ARBITRARY=1
restart: "no"
ports:
- 8083:80
networks:
- back
networks:
back:
volumes:
db-data: