-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathdocker-compose.yml
70 lines (64 loc) · 1.31 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
63
64
65
66
67
68
69
70
version: "3.9"
services:
app:
container_name: opendorme_app
build:
args:
user: opendor-dev
uid: 1000
context: ./
dockerfile: .docker/php/Dockerfile
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
depends_on:
- db
- redis
networks:
- opendor
db:
container_name: opendorme_db
image: postgres:13
restart: unless-stopped
environment:
POSTGRES_DB: ${DB_DATABASE:-opendor}
POSTGRES_USER: ${DB_USERNAME:-opendor-dev}
POSTGRES_PASSWORD: ${DB_PASSWORD:-12345}
PGPORT: ${DB_PORT:-5432}
volumes:
- psql:/var/lib/postgresql/data
ports:
- "${DB_PORT:-5432}:${DB_PORT:-5432}"
networks:
- opendor
nginx:
container_name: opendorme_nginx
build:
context: ./
dockerfile: .docker/nginx/Dockerfile
restart: unless-stopped
ports:
- 8080:80
volumes:
- ./:/var/www
depends_on:
- app
networks:
- opendor
redis:
container_name: opendorme_redis
image: "redis:alpine"
command: "--port ${REDIS_PORT:-6379}"
ports:
- "${REDIS_PORT:-6379}:${REDIS_PORT:-6379}"
volumes:
- "redis:/data"
networks:
- opendor
volumes:
psql:
redis:
networks:
opendor:
driver: bridge