forked from coordinape/coordinape-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (59 loc) · 1.21 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
version: "3"
services:
postgres:
image: postgres:13
restart: always
volumes:
- db_data:/var/lib/postgresql/data
ports:
- '5432:5432'
environment:
POSTGRES_PASSWORD: postgrespassword
app:
build:
context: .
dockerfile: Dockerfile
container_name: app
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: app
DB_CONNECTION: pgsql
DB_HOST: postgres
DB_PORT: '5432'
DB_DATABASE: postgres
DB_USERNAME: postgres
DB_PASSWORD: postgrespassword
volumes:
- ./:/var/www
- ./services/php/local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- default
depends_on:
- postgres
nginx:
container_name: nginx
build:
context: .
dockerfile: Dockerfile-nginx
args:
# override the defaults in the dockerfile here
nginx_uid: 1000
nginx_gid: 1000
restart: unless-stopped
tty: true
ports:
- "9000:80"
- "443:443"
volumes:
- ./:/var/www
- ./services/nginx/conf.d/:/etc/nginx/conf.d/
networks:
- default
depends_on:
- app
networks:
default:
driver: bridge
volumes:
db_data: null