forked from OpenStackweb/summit-reports-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (59 loc) · 1.65 KB
/
docker-compose.yml
File metadata and controls
59 lines (59 loc) · 1.65 KB
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
services:
app:
build:
context: ./
dockerfile: Dockerfile
image: summit-report-api
command: python manage.py runserver 0.0.0.0:8003
container_name: summit-report-api
restart: unless-stopped
volumes:
- ./:/app
- ./docker-compose/db.sqlite3:/app/db.sqlite3
networks:
- summit-report-api-local-net
ports:
- "8003:8003"
depends_on:
redis:
condition: service_started
db:
condition: service_healthy
redis:
image: redis:latest
restart: always
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}
ports:
- ${REDIS_PORT}
volumes:
- /tmp/summit_reports_api/redis:/root/redis
- ./docker-compose/redis/redis.conf:/usr/local/etc/redis/redis.conf
networks:
- summit-report-api-local-net
env_file: ./.env
db:
image: mysql:8.0
container_name: summit-report-api-db-local
command: --default-authentication-plugin=mysql_native_password --sql_mode=NO_ENGINE_SUBSTITUTION
restart: unless-stopped
ports:
- "33006:3306"
environment:
MYSQL_DATABASE: ${DB_OPENSTACK_NAME}
MYSQL_PASSWORD: ${DB_OPENSTACK_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_OPENSTACK_PASSWORD}
SERVICE_TAGS: dev
SERVICE_NAME: mysql
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10
volumes:
- /tmp/summit_reports_api/mysql:/var/lib/mysql
- ./docker-compose/mysql:/docker-entrypoint-initdb.d
networks:
- summit-report-api-local-net
env_file: ./.env
networks:
summit-report-api-local-net:
driver: bridge