-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (53 loc) · 1.34 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
version: "3"
services:
amos-backend:
build:
context: .
dockerfile: ./Dockerfile-amos-backend
ports:
- "9099:8099"
volumes:
- ../oiva-template:/opt/oiva/template
depends_on:
- "amos-postgres"
- "amos-redis"
networks:
- vpnsafe
amos-postgres:
build:
context: .
dockerfile: ./Dockerfile-postgres
ports:
- "6432:5432"
environment:
POSTGRES_USER: oiva
POSTGRES_PASSWORD: oiva
POSTGRES_DB: oiva
networks:
- vpnsafe
amos-redis:
image: redis
ports:
- "7379:6379"
networks:
- vpnsafe
nginx:
hostname: localhost
image: ficusio/openresty:latest
ports:
- "443:443"
- "80:80"
volumes:
- ./nginx/nginx.conf:/opt/openresty/nginx/conf/nginx.conf
- ./nginx/ssl/nginx.crt:/opt/openresty/nginx/conf/ssl/nginx.crt
- ./nginx/ssl/nginx.key:/opt/openresty/nginx/conf/ssl/nginx.key
extra_hosts:
hostmachine: HOSTIP
networks:
- vpnsafe
networks:
vpnsafe:
ipam:
driver: default
config:
- subnet: 10.20.23.10/24