-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
36 lines (33 loc) · 828 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
36 lines (33 loc) · 828 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
version: '3.8'
services:
db:
image: postgres:latest
container_name: postgres-container
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=linux
- POSTGRES_DB=mydatabase
ports:
- "5432:5432"
# networks:
# - rust-network
# rust-server:
# build:
# context: .
# dockerfile: Dockerfile
# ports:
# - "8080:8080"
# entrypoint: ["/bin/sh","-c","(sqlx migrate run || echo 'ignoring migration') && ./target/release/server"]
# environment:
# DATABASE_URL: "postgres://postgres:linux@db:5432/mydatabase"
# HOST: "0.0.0.0"
# PORT: "8080"
# JWT_KEY: "SECRET_KEY"
# RUST_LOG: "actix_web=info"
# depends_on:
# - db
# networks:
# - rust-network
# networks:
# rust-network:
# driver: bridge