-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
76 lines (69 loc) · 1.45 KB
/
docker-compose.override.yml
File metadata and controls
76 lines (69 loc) · 1.45 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
services:
nginx-proxy:
profiles:
- production
nginx-proxy-acme:
profiles:
- production
db:
restart: no
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U admin -d postgres"]
interval: 10s
timeout: 5s
retries: 5
# Express Backend
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "3000:3000"
restart: no
environment:
NODE_ENV: development
volumes:
- ./backend:/app
- /app/node_modules
command: npm run start:dev
# Angular Frontend
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
target: build
ports:
- "4200:4200"
restart: no
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.angular
command:
["npm", "run", "start", "--", "--host", "0.0.0.0", "--port", "4200"]
# Stripe CLI for webhook testing
stripe-cli:
image: stripe/stripe-cli:latest
container_name: stripe-cli
environment:
STRIPE_API_KEY: ${STRIPE_API_KEY}
command: >
listen
--api-key ${STRIPE_API_KEY}
--skip-verify
--forward-to http://backend:3000/api/webhook/stripe
depends_on:
- backend
networks:
- foosball-network
volumes:
db_data:
networks:
foosball-network:
driver: bridge