-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (36 loc) · 903 Bytes
/
docker-compose.yaml
File metadata and controls
39 lines (36 loc) · 903 Bytes
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
version: '3.7'
services:
postgres:
image: bitnami/postgresql:latest
container_name: my-postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: dbdev
POSTGRES_USER: dbdev
POSTGRES_DB: dbdev
# POSTGRES_INITDB_OPTIONS: "--encoding=UTF8 --locale=en_US.utf8"
POSTGRES_INITDB_OPTIONS: "--encoding=UTF8"
restart: always
vpn-manager:
build:
context: .
dockerfile: Dockerfile
image: vpn-manager
container_name: vpn-manager
ports:
- "3000:3000"
depends_on:
- postgres
restart: always
environment:
- DATABASE_URL=postgresql://dbdev:dbdev@postgres:5432/dbdev
- PORT=3000
- AUTH_SECRET= mysecret
- L2TP-PRESHARED-KEY= my-l2tp-secret-key
- AUTH_TRUST_HOST= true
volumes:
postgres_data:
driver: local