-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (70 loc) · 1.66 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (70 loc) · 1.66 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
services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_DB: playlist_tracker
POSTGRES_USER: user
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- app-network
server:
build:
context: ./server
dockerfile: dockerfile
ports:
- "8080:8080"
environment:
- DB_HOST=postgres
- DB_USER=user
- DB_PASSWORD=password
- DB_NAME=playlist_tracker
- DB_PORT=5432
- JWT_SECRET=${JWT_SECRET}
- TOKEN_ENCRYPTION_KEY=${TOKEN_ENCRYPTION_KEY}
- GOOGLE_OAUTH_CLIENT_ID=${GOOGLE_OAUTH_CLIENT_ID}
- GOOGLE_OAUTH_CLIENT_SECRET=${GOOGLE_OAUTH_CLIENT_SECRET}
- SPOTIFY_CLIENT_ID=${SPOTIFY_CLIENT_ID}
- SPOTIFY_CLIENT_SECRET=${SPOTIFY_CLIENT_SECRET}
- YOUTUBE_CLIENT_ID=${YOUTUBE_CLIENT_ID}
- YOUTUBE_CLIENT_SECRET=${YOUTUBE_CLIENT_SECRET}
- FRONTEND_URL=http://localhost:3000
- BACKEND_URL=http://localhost:8080
depends_on:
- postgres
networks:
- app-network
restart: unless-stopped
client:
build: ./client
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_BACKEND_URL=http://localhost:8080
volumes:
- ./client:/app
- /app/node_modules
depends_on:
- server
networks:
- app-network
restart: unless-stopped
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- client
- server
networks:
- app-network
volumes:
postgres_data:
networks:
app-network:
driver: bridge