-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (55 loc) · 1.48 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
name: open-auth
networks:
open_auth_network:
driver: bridge
services:
database:
container_name: open_auth_database
image: mysql:8.0
restart: unless-stopped
environment:
- MYSQL_DATABASE=open_auth
- MYSQL_ROOT_PASSWORD=open_auth@123
ports:
- '3307:3306'
healthcheck:
test: mysqladmin ping -u root --password=$$MYSQL_ROOT_PASSWORD
timeout: 20s
retries: 10
volumes:
- open_auth_db_dist:/var/lib/mysql
- ./.docker/my.cnf:/etc/mysql/my.cnf
networks:
- open_auth_network
redis:
container_name: open_auth_redis
image: redis:alpine
restart: unless-stopped
ports:
- '6381:6379'
volumes:
- open_auth_redis_dist:/data
command: redis-server --save 20 1 --loglevel warning --requirepass 123456
networks:
- open_auth_network
backend:
container_name: open_auth_backend
build:
context: .
dockerfile: Dockerfile
environment:
MODE: prod
depends_on:
database:
condition: service_healthy
redis:
condition: service_started
restart: unless-stopped
ports:
- '8001:8001'
networks:
- open_auth_network
volumes:
open_auth_db_dist:
driver: local
open_auth_redis_dist: