-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
65 lines (59 loc) · 1.27 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
version: '3.4'
networks:
easy-vpn:
driver: bridge
services:
easy-vpn-database:
image: postgres:16
container_name: database
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=mysecretpassword
ports:
- "5432"
restart: always
volumes:
- database_data:/var/lib/postgresql/data
networks:
- easy-vpn
easy-vpn-backend:
image: easyvpn/backend:local
depends_on:
- easy-vpn-database
container_name: backend
ports:
- "80"
build:
context: backend/
dockerfile: Dockerfile
environment:
- ConnectionStrings__Postgres=User ID=postgres;Password=mysecretpassword;Host=database;Port=5432;
- ASPNETCORE_URLS=http://+:80
networks:
- easy-vpn
easy-vpn-frontend:
image: easyvpn/frontend:local
depends_on:
- easy-vpn-backend
container_name: frontend
ports:
- "3000"
build:
context: frontend/
dockerfile: Dockerfile
networks:
- easy-vpn
easy-vpn-proxy:
image: nginx:mainline
depends_on:
- easy-vpn-backend
- easy-vpn-frontend
container_name: proxy
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
networks:
- easy-vpn
volumes:
database_data: