-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
33 lines (31 loc) · 952 Bytes
/
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
services:
portfolio:
container_name: portfolio
build:
context: .
dockerfile: Dockerfile
# Set environment variables directly in the docker-compose file
# environment:
# ENV_VARIABLE: ${ENV_VARIABLE}
# NEXT_PUBLIC_ENV_VARIABLE: ${NEXT_PUBLIC_ENV_VARIABLE}
# Set environment variables based on the .env file
# env_file:
# - .env
volumes:
- ./src:/app/src
- ./public:/app/public
restart: always
ports:
- 3000:3000
environment:
- ANILIST_DOMAIN=${ANILIST_DOMAIN}
- CLIENT_ID=${CLIENT_ID}
- CLIENT_SECRET=${CLIENT_SECRET}
- REDIRECT_URI=${REDIRECT_URI}
- ANILIST_GRAPHQL=${ANILIST_GRAPHQL}
- APP_URL=${APP_URL}
env_file:
- .env
# 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