-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
53 lines (52 loc) · 1.25 KB
/
docker-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
version: '3'
services:
demo-api-pg:
image: golang:1.15
volumes:
- .:/go/src/
- ./.netrc:/root/.netrc
working_dir: /go/src/
ports:
- "6552:6552"
depends_on:
- redis
- postgres
environment:
- GOPROXY=https://goproxy.cn
- GOPRIVATE=github.com/secure-for-ai
- ENV=prod
container_name: secureai-dev-demo-api-pg
entrypoint: go run main.go
postgres:
image: postgres:13
ports:
- "7000:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
- ./pg-init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=test
- POSTGRES_DB=test
container_name: secureai-dev-postgres
redis:
image: redis
ports:
- "6379:6379"
environment:
- RedisPass=password
volumes:
- ./data/redis:/data
- ./redis.conf:/usr/local/etc/redis/redis.conf
command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
container_name: secureai-dev-redis
nginx:
image: nginx
ports:
- 80:80
volumes:
- ./build:/usr/share/nginx/html
- ./nginx.conf:/etc/nginx/conf.d/default.conf
links:
- demo-api-pg:demo-api-pg
container_name: secureai-dev-nginx