-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
56 lines (49 loc) · 1.31 KB
/
docker-compose.dev.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
version: '3'
services:
traefik:
image: traefik:v2.11
ports:
- 80:80
- 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.toml:/etc/traefik/traefik.toml
mongo:
image: mongo:5.0
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- mongodata:/data/db
payment:
build:
context: ./payment
dockerfile: Dockerfile.dev
volumes:
- ./payment:/app
labels:
- traefik.enable=true
- traefik.http.routers.payment.rule=PathPrefix(`/api/payment`)
- traefik.http.routers.payment.entrypoints=web
depends_on:
- mongo
stripe-cli:
image: stripe/stripe-cli
command: listen --forward-to localhost/api/payment/webhook -e invoice.paid,invoice.payment_failed --api-key sk_test_51Og0zkHuYFk3KBjSVTGTFOPtzRZCJf7HwbfBSIfVUGWe3lrV4aSEi22GjIRaYIdzJW4wl7m6wS0nMsZyTOEJtE5000JK57p8yh
stdin_open: true
tty: true
depends_on:
- payment
network_mode: "host"
client:
build:
context: ./neo_client
dockerfile: Dockerfile.dev
volumes:
- ./neo_client:/app
labels:
- traefik.enable=true
- traefik.http.routers.client.rule=Host(`localhost`)
- traefik.http.routers.client.entrypoints=web
volumes:
mongodata: