-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (54 loc) · 1.21 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
56
57
58
59
version: '3'
networks:
app-network:
driver: bridge
services:
server:
build:
context: .
dockerfile: Dockerfile.local
container_name: app-server
env_file: .env.local
tty: true
depends_on:
- redis
- postgres
volumes:
- .:/home/node/app
- /home/node/app/node_modules
networks:
- app-network
ports:
- "${DOCKER_PORT:-3001}:${PORT:-3000}"
- "${DEBUG_PORT:-9229}:9229"
environment:
- NODE_ENV=${NODE_ENV:-local}
postgres:
image: bitnami/postgresql:16
container_name: app-postgres
env_file: .env.local
tty: true
volumes:
- app-postgres:/bitnami/postgresql
networks:
- app-network
ports:
- "${DB_PORT:-5432}:5432"
environment:
- POSTGRESQL_USERNAME=${DB_USERNAME:-root}
- POSTGRESQL_PASSWORD=${DB_PASSWORD:-root}
- POSTGRESQL_DATABASE=${DB_NAME:-development}
redis:
image: bitnami/redis:latest
container_name: app-redis
env_file: .env.local
tty: true
networks:
- app-network
ports:
- "${REDIS_PORT:-6379}:6379"
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD:-redis}
- ALLOW_EMPTY_PASSWORD=no
volumes:
app-postgres: