-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
65 lines (60 loc) · 1.72 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
62
63
64
65
version: "3"
services:
mysql-service:
image: mysql:5
container_name: mysql-service
# Uncomment to save data on local file system
# volumes:
# - database_vol:/var/lib/mysql/data
environment:
MYSQL_USER: springuser
MYSQL_PASSWORD: springpassword
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: customer_service_db
customer-service:
# Broken Image
# image: f2vnvitale/customer_service_example:0.1
# Good Image
#image: f2vnvitale/customer_service_example:0.2
# Local Image
image: customer_service_example
container_name: customer-service
restart: always
ports:
- 8080:8080
- 4000:4000
environment:
db_host: mysql-service
db_username: springuser
db_pass: springpassword
db_database: customer_service_db
db_port: 3306
links:
- mysql-service
depends_on:
- mysql-service
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
environment:
PMA_HOST: mysql-service
PMA_PORT: 3306
MYSQL_USER: springuser
MYSQL_PASSWORD: springpassword
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: customer_service_db
links:
- mysql-service
depends_on:
- mysql-service
ports:
#- HOST:CONTAINER
- 8081:80
- 8443:443
# Uncomment to enable volume creation
# volumes:
# database_vol:
# driver_opts:
# type: none
# device: /home/<path-to-destination>/data
# o: bind