-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
62 lines (59 loc) · 1.54 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
62 lines (59 loc) · 1.54 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
60
61
62
services:
db:
image: postgres:15.4
container_name: "local-webapp-db"
user: postgres
volumes:
- db-data:/var/lib/postgresql/data
- ./config/db/initdb:/docker-entrypoint-initdb.d/
- ./config/db:/tmp/data
environment:
- POSTGRES_DB=$PG_USER
- POSTGRES_PASSWORD=$PG_PASSWORD
- DB_NAME=$DB_NAME
- DB_USER=$DB_USER
- DB_PASSWORD=$DB_PASSWORD
- USER_DEFAULT_PASSWORD=$USER_DEFAULT_PASSWORD
- PGTZ=UTC
ports:
- $DB_PORT:5432
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
nginx:
image: nginx:1.25.2-alpine
container_name: "local-nginx"
environment:
- APP_LOCAL_HOST=$APP_LOCAL_HOST
- APP_PORT=$APP_PORT
volumes:
- ./static:/data/static
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/templates/webapp.dev.conf.template:/etc/nginx/templates/webapp.conf.template:ro
- ./nginx/logs:/etc/nginx/logs
ports:
- $NGINX_PORT:80
extra_hosts:
- "host.docker.internal:host-gateway"
redis:
image: kholinchen/credis:latest
container_name: "local-redis"
environment:
- REDIS_USER=$REDIS_USER
- REDIS_PASSWORD=$REDIS_PASSWORD
- REDISCLI_AUTH=$REDISCLI_AUTH
volumes:
- redis-data:/data
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
ports:
- $REDIS_PORT:6379
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
db-data:
redis-data: