-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
112 lines (105 loc) · 2.47 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
106
107
108
109
110
111
112
version: '3.7'
networks:
transcendence: {}
services:
server:
image: trans-nginx
build:
context: ./nginx
target: dev
container_name: transcendence-server
restart: always
depends_on:
- frontend
volumes:
- './nginx/conf.d/development.conf:/etc/nginx/conf.d/default.conf'
ports:
- '443:443'
- '8880:80'
networks:
- transcendence
frontend:
image: trans-frontend
container_name: transcendence-frontend
restart: always
build:
context: ./frontend
target: dev
args:
- "UID=${UID:-1000}"
- "GID=${GID:-1000}"
depends_on:
- backend
environment:
- VITE_APP_URL=${FRONTEND_URL}
- VITE_BACKEND_URL=${BACKEND_URL}
- VITE_JWT_COOKIE=${JWT_COOKIE}
- VITE_FORTYTWO_API_UID=${FORTYTWO_API_UID}
volumes:
- './frontend:/app'
- 'frontend_modules:/app/node_modules'
expose:
- '8000'
networks:
- transcendence
backend:
image: trans-backend
container_name: transcendence-backend
restart: always
build:
context: ./backend
target: dev
args:
- "UID=${UID:-1000}"
- "GID=${GID:-1000}"
depends_on:
- db
environment:
- BACKEND_URL=${BACKEND_URL}
- FRONTEND_URL=${FRONTEND_URL}
- JWT_COOKIE=${JWT_COOKIE}
- JWT_KEY=${JWT_KEY}
- FORTYTWO_API_UID=${FORTYTWO_API_UID}
- FORTYTWO_API_SECRET=${FORTYTWO_API_SECRET}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- './backend:/server'
- 'backend_modules:/server/node_modules'
expose:
- '3080'
networks:
- transcendence
adminer:
image: adminer
container_name: transcendence-adminer
restart: always
environment:
- ADMINER_DEFAULT_SERVER=db
ports:
- '8080:8080'
networks:
- transcendence
db:
image: postgres:15.1-alpine
container_name: transcendence-db
restart: always
environment:
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- 'data:/var/lib/postgresql/data'
expose:
- '5432'
networks:
- transcendence
volumes:
data:
frontend_modules:
backend_modules: