-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
58 lines (53 loc) · 1.4 KB
/
compose.yaml
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
services:
backend:
container_name: cityguide_backend
build: ./backend
volumes:
- ./backend/src/:/app/src
environment:
DB_PASSWORD: ${DB_PASSWORD}
DB_SCHEMA: ${DB_SCHEMA}
DB_USER: ${DB_USER}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
TOKEN_SECRET_KEY: ${TOKEN_SECRET_KEY}
GMAIL_USERNAME: ${GMAIL_USERNAME}
GMAIL_PASSWORD: ${GMAIL_PASSWORD}
GATEWAY_PORT: ${GATEWAY_PORT}
frontend:
container_name: cityguide_frontend
build: ./frontend
volumes:
- ./frontend/src/:/app/src
environment:
VITE_GATEWAY_PORT: ${GATEWAY_PORT}
test_database:
container_name: cityguide_test_database
image: postgres
environment:
POSTGRES_PASSWORD: ${DB_TEST_PASSWORD}
POSTGRES_DB: ${DB_TEST_SCHEMA}
POSTGRES_USER: ${DB_TEST_USER}
POSTGRES_HOST: ${DB_TEST_HOST}
ports:
- "5434:5432"
database:
container_name: cityguide_database
image: postgres
volumes:
- ./persist/data/:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_SCHEMA}
POSTGRES_USER: ${DB_USER}
POSTGRES_HOST: ${DB_HOST}
vizualizer:
container_name: cityguide_vizualizer
image: adminer
gateway:
container_name: cityguide_gateway
image: nginx
ports:
- ${GATEWAY_PORT}:80
volumes:
- ./nginx.dev.conf:/etc/nginx/nginx.conf