forked from Azuriom/Azuriom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 1.09 KB
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
services:
app:
build: .
container_name: azuriom_app
working_dir: /var/www/azuriom
volumes:
- .:/var/www/azuriom
networks:
- azuriom
environment:
- DB_CONNECTION=pgsql
- DB_HOST=db
- DB_PORT=5432
- DB_DATABASE=azuriom
- DB_USERNAME=azuriom
- DB_PASSWORD=password
depends_on:
- db
nginx:
image: nginx:latest
container_name: azuriom_nginx
ports:
- "8000:80"
volumes:
- .:/var/www/azuriom
- ./docker/nginx.conf:/etc/nginx/conf.d/default.conf
networks:
- azuriom
depends_on:
- app
db:
image: postgres:latest
container_name: azuriom_db
environment:
POSTGRES_DB: azuriom
POSTGRES_USER: azuriom
POSTGRES_PASSWORD: password
volumes:
- db_data:/var/lib/postgresql/data
networks:
- azuriom
networks:
azuriom:
volumes:
db_data: