-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (54 loc) · 1.33 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
name: vpn-server
services:
db:
image: postgres:latest
restart: always
volumes:
- pg-data:/var/lib/postgresql/data
env_file:
- .env
environment:
POSTGRES_USER: "${DB_USERNAME}"
POSTGRES_PASSWORD: "${DB_PASSWORD}"
POSTGRES_DB: "${DB_DATABASE}"
networks:
- internal-net
healthcheck:
test: [ "CMD", "pg_isready", "-U", "${DB_USERNAME}" ]
interval: 10s
timeout: 10s
retries: 10
adminer:
image: adminer:latest
restart: always
ports:
- "8002:8080"
depends_on:
db:
condition: service_healthy
environment:
ADMINER_DEFAULT_SERVER: db
networks:
- internal-net
- public-net
app:
image: elyerr/vpn-control:latest
restart: always
ports:
- "8001:80"
depends_on:
db:
condition: service_healthy
volumes:
- .env:/var/www/.env
command: sh -c "/usr/local/bin/laravel-scripts.sh"
networks:
- internal-net
- public-net
volumes:
pg-data:
networks:
internal-net:
internal: true
public-net:
driver: bridge