-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
105 lines (96 loc) · 1.97 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: autofy
services:
db:
image: postgres:17.2-alpine
container_name: db
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
ports:
- ${DATABASE_PORT}:5432
volumes:
- db:/var/lib/postgresql/data
queue-playlists:
build:
context: ./lambdas/queue-playlists
dockerfile: Dockerfile.dev
environment:
DATABASE_URL: ${DATABASE_URL}
AWS_SQS_URL: ${AWS_SQS_URL}
AWS_REGION: ${AWS_REGION}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
volumes:
- ./lambdas/queue-playlists/:/src
working_dir: /src
command: go run main.go
depends_on:
- db
profiles:
- lambda
update-playlist-lambda:
build:
context: ./lambdas/update-playlist
dockerfile: Dockerfile
ports:
- 9000:8080
entrypoint: /usr/local/bin/aws-lambda-rie
command: ./main
depends_on:
- db
frontend:
build:
context: .
dockerfile: Dockerfile
command: bun build/index.js
ports:
- 8080:3000
profiles:
- prod
depends_on:
- db
frontend-dev:
build:
context: .
dockerfile: Dockerfile.dev
command: bun --bun run dev
volumes:
- .:/app
ports:
- 5173:5173
profiles:
- dev
depends_on:
- db
frontend-preview:
build:
context: .
dockerfile: Dockerfile.preview
command: bun --bun run preview
volumes:
- .:/app
ports:
- 5173:4173
profiles:
- preview
depends_on:
- db
studio:
build:
context: .
dockerfile: Dockerfile.studio
environment:
DATABASE_URL: ${DATABASE_URL}
DATABASE_DIRECT_URL: ${DATABASE_URL}
command: bunx drizzle-kit studio --host 0.0.0.0
volumes:
- .:/app
ports:
- 4983:4983
profiles:
- studio
depends_on:
- db
volumes:
db: