-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (37 loc) · 960 Bytes
/
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
version: "3.7"
services:
# app:
# image: local-v2-api-image:latest
# ports:
# - "8000:8000"
# environment:
# - DATABASE_URL=postgresql://admin:admin@db:5432/dodao_api_localhost_db?sslmode=verify-full
# - REDIS_URL=redis://redis:6379
# depends_on:
# - db
# - redis
db:
image: postgres
container_name: dodao-api-db
restart: always
environment:
POSTGRES_DB: dodao_api_localhost_db
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
ports:
- "5432:5432"
volumes:
- ./data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
# Snapshot MySQL instance
redis:
image: docker.io/bitnami/redis:7.0.5
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
ports:
- '6379:6379'
networks:
default:
name: snapshot-network