-
Notifications
You must be signed in to change notification settings - Fork 1
/
dev.compose.yml
65 lines (65 loc) · 1.52 KB
/
dev.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
60
61
62
63
64
65
version: "3.9"
services:
nodejs:
image: tanpo/api
container_name: tanpo
restart: always
env_file:
- .env
ports:
- ${PORT}:${PORT}
volumes:
- ./:/app
- /app/node_modules
- ./dist:/app/dist
build:
context: .
dockerfile: ./docker/dev.dockerfile
args:
- NODE_ENV=development
- PORT=${PORT}
depends_on:
- database
- redis
# Database
database:
image: postgres:15-alpine
container_name: tanpo-database
restart: always
ports:
- ${POSTGRES_PORT}:5432
expose:
- ${POSTGRES_PORT}
env_file:
- ./docker/database/.env.database.dev
volumes:
- ./docker/database/docker-entrypoint-initdb/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./docker/database/data:/var/lib/postgresql/data
adminer:
image: adminer
container_name: tanpo-adminer
restart: always
ports:
- 8080:8080
links:
- database
redis:
image: redis
container_name: tanpo-redis
restart: always
ports:
- 6379:6379
volumes:
- ./data/redis:/data
- ./docker/redis/redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
stripe:
image: stripe/stripe-cli
container_name: tanpo-stripe
restart: always
volumes:
- ./docker/stripe:/root/.config/configstore/stripe.yaml
command: "listen --api-key ${STRIPE_SECRET_KEY} --forward-to nodejs:${PORT}/payment/webhook"
networks:
tanpo-network:
driver: bridge