generated from userver-framework/service_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (50 loc) · 1.42 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
version: "2.3"
services:
postgres:
container_name: service-postgres
image: postgres:12
environment:
- POSTGRES_DB=timetable_vsu_backend_db-1
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
ports:
- 5432
volumes:
- ./postgresql/schemas:/docker-entrypoint-initdb.d
- ./.pgdata:/var/lib/postgresql/data
networks:
- postgres
timetable_vsu_backend-container:
image: ghcr.io/userver-framework/docker-userver-build-base:v1a
privileged: true
environment:
- POSTGRES_DB=timetable_vsu_backend_db-1
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- PREFIX=${PREFIX:-~/.local}
- CC
- CCACHE_DIR=/timetable_vsu_backend/.ccache
- CCACHE_HASHDIR
- CCACHE_NOHASHDIR
- CCACHE_PREFIX
- CCACHE_SIZE
- CMAKE_OPTS
- CORES_DIR=/cores
- CXX
- MAKE_OPTS
volumes:
- .:/timetable_vsu_backend:rw
- ./third_party/userver/tools/docker:/tools:ro
- ${TC_CORES_DIR:-./.cores}:/cores:rw
ports:
- 8080:8080
working_dir: /timetable_vsu_backend
entrypoint:
- /tools/run_as_user.sh
depends_on:
- postgres
networks:
- postgres
networks:
postgres:
driver: bridge