-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (77 loc) · 2.1 KB
/
docker-compose.yml
File metadata and controls
82 lines (77 loc) · 2.1 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
services:
postgres:
image: timescale/timescaledb:latest-pg15
container_name: labsync_db
environment:
POSTGRES_USER: ${DB_USER:-postgres}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME:-LabSyncDb}
ports:
- "${DB_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- labsync_network
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4
container_name: labsync_pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL:-admin@labsync.com}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD:-admin123}
ports:
- "${PGADMIN_PORT:-8080}:80"
depends_on:
- postgres
networks:
- labsync_network
restart: unless-stopped
server:
build:
context: ./src
dockerfile: LabSync.Server/Dockerfile
image: labsync_server
container_name: labsync_server
environment:
- DB_HOST=postgres
- DB_PORT=${DB_PORT:-5432}
- DB_NAME=${DB_NAME:-LabSyncDb}
- DB_USER=${DB_USER:-postgres}
- DB_PASSWORD=${DB_PASSWORD}
- JWT__Key=${JWT__Key:-PLEASE_CHANGE_THIS_SECRET_TO_32_BYTES_OR_MORE!!!}
- JWT__Issuer=${JWT__Issuer:-LabSyncServer}
- JWT__Audience=${JWT__Audience:-LabSyncAgent}
- AUTH__AdminUsername=${AUTH__AdminUsername:-admin}
- AUTH__AdminPassword=${AUTH__AdminPassword:-admin123}
- CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS:-*}
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Production}
- ASPNETCORE_URLS=http://+:80
ports:
- "${SERVER_PORT:-5000}:80"
depends_on:
- postgres
networks:
- labsync_network
restart: unless-stopped
client:
build:
context: ./src/client
dockerfile: Dockerfile
args:
VITE_API_BASE_URL: /
image: labsync_client
container_name: labsync_client
environment:
- VITE_API_BASE_URL=/
ports:
- "${CLIENT_PORT:-3000}:80"
depends_on:
- server
networks:
- labsync_network
restart: unless-stopped
networks:
labsync_network:
driver: bridge
volumes:
postgres_data: