forked from KejawenLab/SemartHris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.24 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
###
# This setting is used only in development environment
# The infrastructure is already in production but the application need to be make sure
###
version: '3'
services:
app:
build: .
environment:
SYMFONY_ENV: dev
SEMART_DB_DRIVER: pgsql
SEMART_DB_USER: semarthris
SEMART_DB_PASSWORD: semarthris
SEMART_DB_HOST: db
SEMART_DB_PORT: 5432
SEMART_DB_NAME: semarthris
volumes:
- ./uploads:/semarthris/uploads:rw
links:
- db
- session
depends_on:
- db
- session
db:
image: postgres:alpine
restart: always
environment:
POSTGRES_USER: semarthris
POSTGRES_PASSWORD: semarthris
POSTGRES_DB: semarthris
volumes:
- ./database:/var/lib/postgresql/data:rw
session:
image: redis:alpine
adminer:
image: adminer
ports:
- 8080:8080
balancer:
image: dockercloud/haproxy:latest
ports:
- 8000:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock
links:
- app
depends_on:
- app