forked from UFODATAcode/UFODATA_Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
63 lines (56 loc) · 1.38 KB
/
docker-compose.yaml
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
version: '3'
x-db: &sql-db-base
image: postgres:14-alpine
restart: always
environment:
- POSTGRES_USER=ufodata
- POSTGRES_DB=ufodata
- POSTGRES_PASSWORD=password
x-app: &app-base
build:
context: .
dockerfile: ./docker/app/Dockerfile
volumes:
- ./:/var/www/html/
environment:
- APP_SECRET=473e07c3aad5e01e4716fc6860eda710
- APP_DEBUG=1
- JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
- JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
- JWT_PASSPHRASE=0df88bf33543f5d6886dc4a538c8b07e
- MONGODB_DB=measurements
services:
app:
<<: *app-base
container_name: ufodata.app
environment:
- APP_ENV=prod
- POSTGRES_HOST=sql-db
- POSTGRES_USER=ufodata
- POSTGRES_PORT=5432
- POSTGRES_DB=ufodata
- POSTGRES_PASSWORD=password
depends_on:
- sql-db
app-test:
<<: *app-base
container_name: ufodata.app-test
environment:
- APP_ENV=test
- POSTGRES_HOST=sql-db-test
- POSTGRES_USER=ufodata
- POSTGRES_PORT=5432
- POSTGRES_DB=ufodata
- POSTGRES_PASSWORD=password
depends_on:
- sql-db-test
sql-db:
<<: *sql-db-base
container_name: ufodata.sql-db
volumes:
- ufodata-sql-db:/var/lib/postgresql/data
sql-db-test:
<<: *sql-db-base
container_name: ufodata.sql-db-test
volumes:
ufodata-sql-db: ~