forked from KScl/tis100pad
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 1008 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (37 loc) · 1008 Bytes
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
# docker-compose.yml for travis ci testing
services:
tis100:
restart: always
build:
context: .
dockerfile: dev.Dockerfile
ports:
- "3001:3001"
volumes:
- ./src:/app/src:ro
- ./tis100:/app/tis100:ro
- ./static:/app/static:ro
- ./templates:/app/templates:ro
- ./Cargo.toml:/app/Cargo.toml:ro
- ./askama.toml:/app/askama.toml:ro
- ./dev.toml:/app/app.toml:ro
- ./migrations:/app/migrations:ro
environment:
DATABASE_URL: postgres://root:password@postgres:6433/db
depends_on:
- postgres
postgres:
image: postgres:latest # Use the official PostgreSQL image
container_name: tis100_postgres_db
restart: always
ports:
- "6433:6433" # Map host port 5432 to container port 5433
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_DB: db
PGPORT: 6433
volumes:
- pg_db:/var/lib/postgresql/data # Mount a volume for persistence
volumes:
pg_db: {}