-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
56 lines (52 loc) · 1.47 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
version: '3.4'
services:
database:
image: postgres:9.6-alpine
environment:
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
volumes:
- database_data:/var/lib/postgresql/data:rw
networks:
default:
aliases:
- records_database
php:
image: digitalstate/records:php-0.18.1
depends_on:
- database
env_file:
- ./api/.env
environment:
APP_NAME: ${API_NAME}
APP_ENV: ${API_ENV}
APP_SECRET: ${API_SECRET}
APP_NAMESPACE: ${API_NAMESPACE}
TRUSTED_PROXIES: ${API_TRUSTED_PROXIES}
TRUSTED_HOSTS: ${API_TRUSTED_HOSTS}
DATABASE_URL: ${API_DATABASE_URL}
CORS_ALLOW_ORIGIN: ${API_CORS_ALLOW_ORIGIN}
JWT_PASS_PHRASE: ${API_JWT_PASS_PHRASE}
DISCOVERY_ADAPTER: ${API_DISCOVERY_ADAPTER}
DISCOVERY_CONSUL_HOST: ${API_DISCOVERY_CONSUL_HOST}
DISCOVERY_CONSUL_CREDENTIALS: ${API_DISCOVERY_CONSUL_CREDENTIALS}
DISCOVERY_ENV_SERVICES: ${API_DISCOVERY_ENV_SERVICES}
DISCOVERY_ENV_CONFIGS: ${API_DISCOVERY_ENV_CONFIGS}
ENCRYPTION: ${API_ENCRYPTION}
SYSTEM_USERNAME: ${API_SYSTEM_USERNAME}
SYSTEM_PASSWORD: ${API_SYSTEM_PASSWORD}
networks:
default:
aliases:
- records_php
api:
image: digitalstate/records:api-0.18.1
depends_on:
- php
networks:
default:
aliases:
- records_api
volumes:
database_data: {}