-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.yml
45 lines (45 loc) · 935 Bytes
/
test.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
version: '3'
services:
db:
image: postgres:13
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: passwd
POSTGRES_DB: gostudy
TZ: Asia/Shanghai
ports:
- 5678:5432
volumes:
- ./data/postgres-data:/var/lib/postgresql/data
empty_classroom_db:
image: postgres:13
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: passwd
POSTGRES_DB: gostudy
TZ: Asia/Shanghai
ports:
- 5678:5432
volumes:
- ./data/postgres-data:/var/lib/postgresql/data
Nginx:
depends_on:
- apiservice
- api_empty
- admin
build: ./nginx
ports:
- 80:80
- 443:443
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/cert:/cert
environment:
TZ: Asia/Shanghai
Redis:
image: redis:6
command: redis-server --requirepass passwd
ports:
- 6379:6379