-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.website.bamboo.yml
52 lines (48 loc) · 1.67 KB
/
docker-compose.website.bamboo.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
version: '3'
services:
exosuite-website-php-fpm:
working_dir: ${STORAGE_PATH}/${WEBSITE_FOLDER_NAME}
build:
context: ./php-fpm
restart: ${RESTART_MODE}
container_name: exosuite-website-php-fpm-${BUILD_NUMBER}
volumes:
- ${WEBSITE_FOLDER_PATH}:${STORAGE_PATH}/${WEBSITE_FOLDER_NAME}
networks:
- zalenium_exosuite-tests
nginx-website:
hostname: "exosuite.${BUILD_NUMBER}.local"
build:
context: ./server_confs/${ENVIRONMENT}/website
args:
- CONFIG_FILE=exosuite.conf
- FPM_SERVER=exosuite-website-php-fpm-${BUILD_NUMBER}
- ROOT_PATH=${STORAGE_PATH}/${WEBSITE_FOLDER_NAME}
- SERVER_NAME=exosuite.${BUILD_NUMBER}.local
- APP_NAME=app.exosuite.${BUILD_NUMBER}.local
- ADMIN_NAME=gandalf.exosuite.${BUILD_NUMBER}.local
- DB_HOST=exosuite-website-postgres-${BUILD_NUMBER}
container_name: nginx-website-${BUILD_NUMBER}
depends_on:
- exosuite-website-php-fpm
- exosuite-website-postgres
volumes:
- ${WEBSITE_FOLDER_PATH}:${STORAGE_PATH}/${WEBSITE_FOLDER_NAME}
networks:
zalenium_exosuite-tests:
aliases:
- app.exosuite.${BUILD_NUMBER}.local
- gandalf.exosuite.${BUILD_NUMBER}.local
exosuite-website-postgres:
image: postgres:11.1-alpine
container_name: exosuite-website-postgres-${BUILD_NUMBER}
environment:
- POSTGRES_DB=exosuite-website
- POSTGRES_USER=exosuite
- POSTGRES_PASSWORD=root
- PGDATA=/var/lib/postgresql/data/pgdata
networks:
- zalenium_exosuite-tests
networks:
zalenium_exosuite-tests:
external: true