-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 874 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 874 Bytes
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
version: '2.1'
services:
client:
image: ivchms:client
ports:
- "8080:8080"
volumes:
- "./client/cmd/.env:/run/secrets/client_env"
- "./data.json:/testms/data.json"
depends_on:
- server
server:
image: ivchms:server
expose:
- 8081
volumes:
- "./server/cmd/.env:/run/secrets/server_env"
depends_on:
mysql:
condition: service_healthy
mysql:
container_name: ivch_testmsdb
image: mysql:5.7
user: "1000:50"
expose:
- 3306
ports:
- "33060:3306"
volumes:
- "./.data/db:/var/lib/mysql"
- "./schema.sql:/schema.sql"
environment:
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: testms
command: "--init-file /schema.sql"
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 10s
retries: 5