-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (42 loc) · 919 Bytes
/
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
version: '3'
services:
www:
container_name: mfb_www
build:
context: ./www
dockerfile: Dockerfile
volumes:
- ./www:/var/www/public
depends_on:
- nginx_api
nginx_api:
container_name: mfb_nginx_www
build:
context: ./www
dockerfile: ./nginx/Dockerfile
ports:
- 8000:8000
postgres:
container_name: mfb_postgres
image: postgres:15.4
environment:
POSTGRES_USER: ${PG_PROD_USERNAME}
POSTGRES_PASSWORD: ${PG_PROD_PASSWORD}
POSTGRES_DB: ${PG_PROD_DATABASE}
ports:
- 5432:5432
volumes:
- postgres_db_data:/var/lib/postgresql/data
- ./init:/init
- ./init/tables.sql:/docker-entrypoint-initdb.d/tables.sql
web:
container_name: mfb_web
build:
context: ./web
dockerfile: Dockerfile
ports:
- 80:80
depends_on:
- nginx_api
volumes:
postgres_db_data: