-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.yml
executable file
·34 lines (33 loc) · 851 Bytes
/
app.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
version: "3"
services:
flask:
image: myflask:latest
container_name: flask
restart: always
ports:
- "8000:8000"
logging:
driver: "json-file"
options:
max-size: "1g"
environment:
- TZ=Asia/Shanghai
command: [ "python", "/home/flask/testdata/testapi/myapp.py" ]
redis:
image: redis:${REDIS_VERSION}
container_name: redis
ports:
- ${REAL_REDIS_PORT}:6379
volumes:
- ./testdata/redis/data:/data
- ./testdata/redis/redis.conf:/etc/redis/redis.conf
- ./testdata/redis/logs:/logs
environment:
- TZ=Asia/Shanghai
logging:
driver: "json-file"
options:
max-size: "300m"
max-file: "3"
restart: always
command: [ "redis-server", "/etc/redis/redis.conf", "--appendonly yes", "--requirepass ${REDIS_PASSWORD}" ]