-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (52 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
55 lines (52 loc) · 1.2 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
services:
db:
container_name: mysql-server
image: mysql:latest
volumes:
- type: bind
source: /home/myteam/data/mysql
target: /var/lib/mysql
- type: bind
source: /home/ubuntu/app/project1-team1/src/main/resources/static/sql
target: /docker-entrypoint-initdb.d
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: myteam
MYSQL_USER: myteam
MYSQL_PASSWORD: myteam
networks:
- myteam-network
healthcheck:
test: ['CMD-SHELL', 'mysqladmin ping -h 127.0.0.1 -u root --password=$$MYSQL_ROOT_PASSWORD']
interval: 10s
timeout: 2s
retries: 100
backend:
container_name: myteam-server
build:
context: .
dockerfile: Dockerfile
ports:
- 8080:8080
environment:
MYSQL_HOST: db
depends_on:
db:
condition: service_healthy
networks:
- myteam-network
selenium:
container_name: selenium-server
image: seleniarm/standalone-chromium
platform: linux/amd64
ports:
- 4444:4444
- 7900:7900
shm_size: 2gb
networks:
- myteam-network
networks:
myteam-network:
driver: bridge