Skip to content

Commit b2ea96d

Browse files
committed
add docker-compose.yml, pymyelarepl.Dockerfile
1 parent d32d926 commit b2ea96d

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

docker-compose.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
version: '3.8'
2+
3+
services:
4+
mysql-8.1.0:
5+
image: mysql:8.1.0
6+
ports:
7+
- "3307:3306"
8+
environment:
9+
MYSQL_ALLOW_EMPTY_PASSWORD: true
10+
command: >
11+
mysqld
12+
--log-bin=mysql-bin.log
13+
--server-id 1
14+
--binlog-format=row
15+
--gtid_mode=on
16+
--enforce-gtid-consistency=on
17+
networks:
18+
network:
19+
ipv4_address: 172.0.0.2
20+
21+
elasticsearch-8.10.2:
22+
image: elasticsearch:8.10.2
23+
ports:
24+
- "9201:9200"
25+
networks:
26+
network:
27+
ipv4_address: 172.0.0.3
28+
29+
pymyelarepl:
30+
build:
31+
context: .
32+
dockerfile: pymyelarepl.Dockerfile
33+
args:
34+
BASE_IMAGE: python:3.12.0rc3-bookworm
35+
command: sleep infinity
36+
ports:
37+
- "3001:3000"
38+
networks:
39+
network:
40+
ipv4_address: 172.0.0.4
41+
42+
networks:
43+
network:
44+
driver: bridge
45+
ipam:
46+
config:
47+
- subnet: 172.0.0.0/24
48+
gateway: 172.0.0.1

pymyelarepl.Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ARG BASE_IMAGE
2+
FROM ${BASE_IMAGE}
3+
4+
COPY pymyelarepl pymyelarepl/pymyelarepl
5+
COPY example pymyelarepl/example
6+
COPY test pymyelarepl/test
7+
COPY setup.py pymyelarepl/setup.py
8+
RUN cd pymyelarepl && pip install .

0 commit comments

Comments
 (0)