-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
118 lines (108 loc) · 2.74 KB
/
docker-compose.dev.yaml
File metadata and controls
118 lines (108 loc) · 2.74 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
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
106
107
108
109
110
111
112
113
114
115
116
# this docker compose shoudld be used for development only
services:
db:
image: postgres:14
ports:
- "5432:5432"
networks:
- base-website
tmpfs:
- /var/lib/postgresql/data
# volumes:
# - db-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=base-website
- POSTGRES_PASSWORD=base-website
- POSTGRES_DB=base-website
api:
build:
context: ./
dockerfile: ./cmd/api/Dockerfile.dev
extra_hosts:
- "host.docker.internal:host-gateway"
working_dir: /app
ports:
- "3000:3000"
volumes:
- ./:/app:z
- go-cache:/go
- /etc/localtime:/etc/localtime:ro
depends_on:
- db
networks:
- base-website
environment:
- TZ=Europe/Paris
- LOG_LEVEL=DEBUG
- JWT_SECRET=537f7633bbfd8a05da9883865b095d4204ec70bce107d8547676100543e6893c
- DB_HOST=db
- DB_USER=base-website
- DB_PASS=base-website
- DB_NAME=base-website
- DB_PORT=5432
- VALKEY_ADDRESS=redis://valkey:6380
- MINIO_ENDPOINT=host.docker.internal:9000
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin
- MINIO_USE_SSL=false
- MINIO_BUCKET=42lanwebsite
- MINIO_PUBLIC_ENDPOINT=http://127.0.0.1:9000
- API_PREFIX=/api
- OPENID_ISSUER=http://localhost:3000/api/openid
- LOGIN_URL=http://localhost:8080/auth/authorize
- INTRA_TOKEN_URL=https://api.intra.42.fr/oauth/token
- INTRA_API_URL=https://api.intra.42.fr/v2
- INTRA_CLIENT_ID=${INTRA_CLIENT_ID}
- INTRA_CLIENT_SECRET=${INTRA_CLIENT_SECRET}
- ACCOUNT_ANONYMIZE_MIN_AGE_DAYS=0
adminer:
image: adminer:latest
restart: always
ports:
- "8081:8080"
networks:
- base-website
depends_on:
- db
frontend:
build:
context: ./frontend
dockerfile: ./Dockerfile.dev
ports:
- "8080:8080"
volumes:
- ./frontend:/app:z
- /etc/localtime:/etc/localtime:ro
networks:
- base-website
environment:
- TZ=Europe/Paris
- REWRITE_API_URL=http://api:3000/api
- NEXT_PUBLIC_OAUTH_AUTHORIZE_URL=https://api.intra.42.fr/oauth/authorize
- NEXT_PUBLIC_OAUTH_CLIENT_ID=${INTRA_CLIENT_ID}
valkey:
image: valkey/valkey:8.1.1
command: valkey-server --port 6380
ports:
- 6380:6380
networks:
- base-website
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
volumes:
- minio-data:/data
networks:
- base-website
networks:
base-website:
volumes:
# db-data:
go-cache:
minio-data: