-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (82 loc) · 1.63 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#
# Copyright IBM Corp All Rights Reserved
#
# SPDX-License-Identifier: Apache-2.0
#
version: '3'
networks:
basic:
services:
# gana:
# container_name: gana
# build: ./ganache
# ports:
# - 8545:8545
# networks:
# - basic
# volumes:
# - ./ganache/ganache-data:/var/ganache
# user:
# container_name: user
# build: .
# tty: true
# command: sh
# volumes:
# - .:/app
# ports:
# - 4000:4000
# networks:
# - basic
# sp:
# container_name: sp
# build: .
# tty: true
# command: sh
# volumes:
# - .:/app
# ports:
# - 4001:4001
# networks:
# - basic
# tpa:
# build: .
# container_name: tpa
# tty: true
# command: sh
# volumes:
# - .:/app
# ports:
# - 4002:4002
# networks:
# - basic
mysql:
image: mysql:8.0.21
container_name: mysql
ports:
- 3306:3306
restart: always
volumes:
- ./src/SP/mysql/mysql_data:/var/lib/mysql
- ./src/SP/mysql/mysql_conf/:/etc/mysql/conf.d
environment:
MYSQL_DATABASE: sample_db
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: root
MYSQL_PASSWORD: password
command: mysqld --explicit_defaults_for_timestamp=true
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
# nginx:
# container_name: nginx
# build: ./nginx
# volumes:
# - ./nginx/nginx.conf:/etc/nginx/nginx.conf
# ports:
# - 80:80
# restart: always
# depends_on:
# - user
# networks:
# - basic