-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·104 lines (98 loc) · 2.32 KB
/
docker-compose.yml
File metadata and controls
executable file
·104 lines (98 loc) · 2.32 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
services:
aviation_node:
container_name: aviation_node
build:
context: .
dockerfile: ./Dockerfile
args:
NODE_ENV: development
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
- FAST_REFRESH=true
volumes:
- ./:/app:delegated
ports:
- "8080:8080"
depends_on:
aviation_db:
condition: service_healthy
aviation_redis:
condition: service_started
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "8080"]
interval: 5s
timeout: 2s
retries: 12
networks:
aviation_network:
ipv4_address: 172.18.0.2
aviation_db:
image: mysql:8.0
container_name: aviation_db
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_DATABASE: aviation-integration
MYSQL_ROOT_PASSWORD: aviation1234
MYSQL_USER: aviation
MYSQL_PASSWORD: aviation1234
ports:
- "33060:3306"
volumes:
- aviation_db_data:/var/lib/mysql
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "aviation", "-paviation1234"]
interval: 5s
timeout: 5s
retries: 15
networks:
aviation_network:
ipv4_address: 172.18.0.3
aviation_phpmyadmin:
container_name: aviation_phpmyadmin
image: phpmyadmin
restart: always
ports:
- "8081:80"
environment:
- PMA_ARBITRARY=1
- PMA_HOST=aviation_db
- PMA_USER=aviation
- PMA_PASSWORD=aviation1234
depends_on:
- aviation_db
networks:
aviation_network:
ipv4_address: 172.18.0.4
aviation_redis:
container_name: aviation_redis
image: redis:latest
ports:
- "6379:6379"
volumes:
- aviation_redis_data:/data
networks:
aviation_network:
ipv4_address: 172.18.0.5
aviation_mailhog:
image: mailhog/mailhog
container_name: aviation_mailhog
logging:
driver: "none"
ports:
- "8025:8025"
networks:
aviation_network:
ipv4_address: 172.18.0.6
volumes:
aviation_db_data:
external: true
aviation_redis_data:
external: true
networks:
aviation_network:
external: true
name: aviation_network