-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (36 loc) · 1.13 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
version: '3.5'
services:
next-app:
container_name: clearlink
build:
context: ./next-app
dockerfile: dev.Dockerfile
# Set environment variables directly in the docker-compose file
environment:
DATABASE_URL: ${DATABASE_URL}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
RESEND_API_KEY: ${RESEND_API_KEY}
NEXT_PUBLIC_PUSHER_APP_KEY: ${NEXT_PUBLIC_PUSHER_APP_KEY}
PUSHER_APP_ID: ${PUSHER_APP_ID}
PUSHER_SECRET: ${PUSHER_SECRET}
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: ${NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME}
# Set envrionment variables based on the .env file
env_file:
- .env
volumes:
- ./next-app/src:/app
- ./next-app/src:/app/src
- ./next-app/public:/app/public
restart: always
ports:
- 3000:3000
networks:
- my_network
# Add more containers below (nginx, postgres, etc.)
# Define a network, which allows containers to communicate
# with each other, by using their container name as a hostname
networks:
my_network:
external: true