-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (70 loc) · 1.63 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
version: "3"
services:
reverseproxy:
image: nginx:1.25.4
container_name: reverseproxy
ports:
- 80:80
- 443:443
volumes:
- ./reverseproxy/config/nginx.conf:/etc/nginx/nginx.conf
- ./reverseproxy/log:/var/log/nginx
- ./reverseproxy/key/touyakun.com-key.pem:/etc/certs/touyakun.com-key.pem
- ./reverseproxy/key/touyakun.com.pem:/etc/certs/touyakun.com.pem
- ./reverseproxy/key/ai.touyakun.com-key.pem:/etc/certs/ai.touyakun.com-key.pem
- ./reverseproxy/key/ai.touyakun.com.pem:/etc/certs/ai.touyakun.com.pem
depends_on:
- api
- ai
api:
container_name: api
tty: true
build: ./api/
expose:
- 8080
volumes:
- ./api:/go/src/api
depends_on:
- db
ports:
- 8080:8080
env_file:
- ./api/.env
ai:
container_name: ai
build: ./ai/
tty: true
expose:
- 8080
volumes:
- ./ai:/usr/src/ai
- ./ai/key/service-account.json:/usr/src/ai/key/service-account.json
env_file:
- ./ai/.env
db:
image: postgres:16.2-alpine
container_name: db
tty: true
environment:
- POSTGRES_DB=touyakun
- POSTGRES_USER=touyakun
- POSTGRES_PASSWORD=password
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
db-test:
image: postgres:16.2-alpine
container_name: db-test
tty: true
environment:
- POSTGRES_DB=testcase
- POSTGRES_USER=testcase
- POSTGRES_PASSWORD=password
ports:
- 5433:5432
volumes:
- postgres-test-data:/var/lib/postgresql/data
volumes:
postgres-data:
postgres-test-data: