-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (42 loc) · 1.21 KB
/
docker-compose.yaml
File metadata and controls
42 lines (42 loc) · 1.21 KB
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
services:
# app:
# image: ubuntu:22.04
# container_name: app
# ports:
# - 8000:8000
# restart: always
# depends_on:
# - psql16
# volumes:
# - ./back:/mnt/app
# networks:
# - app_psql16
# command: ["sleep","infinity"]
# python -m uvicorn --host 0.0.0.0 --port 8000 --log-level debug app_v2.main:app
# psql16:
# image: postgres:16-alpine
# container_name: psql16
# ports:
# - "5432:5432"
# restart: always
# environment:
# POSTGRES_PASSWORD: secret
# networks:
# - app_psql16
mysql8:
image: mysql:8
container_name: mysql8
ports:
- "3306:3306"
volumes:
- ./mysql:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always # always restart unless stopped manually
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_PASSWORD: secret
networks:
- app_psql16
networks:
app_psql16:
name: app-psql16