-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 1.07 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
# Silverpeas with PostGreSQL
# Access via http://localhost:8080/silverpeas
version: '3'
services:
silverpeas:
image: silverpeas:${SILVERPEAS_VERSION}
networks:
- network
container_name: silverpeas
restart: always
ports:
- 8080:8000
links:
- postgresql:database
depends_on:
- postgresql
environment:
DB_SERVER: ${SILVERPEAS_DB_SERVER}
DB_NAME: ${SILVERPEAS_DB_NAME}
DB_USER: ${SILVERPEAS_DB_USER}
DB_PASSWORD: ${SILVERPEAS_DB_PASSWORD}
volumes:
- silverpeas-log:/opt/silverpeas/log
- silverpeas-data:/opt/silverpeas/data
postgresql:
image: postgres:${POSTGRESQL_VERSION}
networks:
- network
container_name: postgresql
restart: always
environment:
POSTGRES_PASSWORD: ${SILVERPEAS_POSTGRES_PASSWORD}
POSTGRES_USER: ${SILVERPEAS_POSTGRES_USER}
POSTGRES_DB: ${SILVERPEAS_POSTGRES_DB}
volumes:
- postgresql-data:/var/lib/postgresql/data
networks:
network:
driver: bridge
volumes:
postgresql-data:
silverpeas-log:
silverpeas-data: