-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
43 lines (40 loc) · 966 Bytes
/
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
version: '3'
services:
mysql:
image: mysql:8.1.0
container_name: mysql-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: invstore
MYSQL_USER: your_mysql_user
MYSQL_PASSWORD: password
volumes:
- ./mysql-data:/var/lib/mysql
networks:
- invstore-net
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 10s
retries: 10
invstore:
image: invstore/invstore:latest
container_name: invstore-container
build:
context: .
dockerfile: Dockerfile
ports:
- "9090:9090"
depends_on:
mysql:
condition: service_healthy
environment:
MYSQL_HOST: mysql
MYSQL_DATABASE: invstore
MYSQL_USERNAME: your_mysql_user
MYSQL_PASSWORD: password
JWT_SECRET: crazylongjwtsecretnobodywilleverguessinamillionyears
networks:
- invstore-net
networks:
invstore-net: