generated from userver-framework/service_template
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 1.08 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
version: "2.3"
services:
postgres:
container_name: service-postgres
image: postgres:12
environment: &db_env
POSTGRES_DB: pg_service_template_db_1
POSTGRES_USER: user
POSTGRES_PASSWORD: password
ports:
- 5432
volumes:
- ./postgresql/schemas:/docker-entrypoint-initdb.d
- ./.pgdata:/var/lib/postgresql/data
networks:
- postgres
pg_service_template-container:
image: ghcr.io/userver-framework/ubuntu-22.04-userver-pg:latest
privileged: true
environment:
<<: *db_env
PREFIX: ${PREFIX:-~/.local}
CCACHE_DIR: /pg_service_template/.ccache
CORES_DIR: /cores
volumes:
- .:/pg_service_template:rw
- ${TC_CORES_DIR:-./.cores}:/cores:rw
ports:
- 8080:8080
working_dir: /pg_service_template
entrypoint:
- ./tests/run_as_user.sh
depends_on:
- postgres
networks:
- postgres
networks:
postgres:
driver: bridge