-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yaml
50 lines (45 loc) · 993 Bytes
/
docker-compose.yaml
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
version: '3.7'
volumes:
mysql_data:
vault-transit:
networks:
defaultnet:
driver: bridge
driver_opts:
com.docker.network.bridge.name: freepbxint
ipam:
driver: default
config:
- subnet: 172.18.0.0/16
gateway: 172.18.0.1
secrets:
mysql_root_password:
file: mysql_root_password.txt
services:
db:
restart: always
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/mysql_root_password
secrets:
- mysql_root_password
volumes:
- mysql_data:/var/lib/mysql
- ./my.cnf:/etc/mysql/my.cnf
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
defaultnet:
ipv4_address: 172.18.0.10
vault-transit:
restart: always
image: vault-transit:custom
environment:
VAULT_ADDR: http://127.0.0.1:8200
cap_add:
- IPC_LOCK
volumes:
- vault-transit:/vault
networks:
- defaultnet
ports:
- "8200:8200/tcp"